Commit b6cdeaed authored by Luís de Sousa's avatar Luís de Sousa
Browse files

Improvements to the Dockerfile

parent 95019980
monoliths monoliths
wsm.rest.env wsm.rest.env
.git
.gitgnore
.project
.pydevproject
*/*.pyc */*.pyc
\ No newline at end of file
...@@ -4,9 +4,11 @@ MAINTAINER Luís de Sousa <luis.desousa@wur.nl> ...@@ -4,9 +4,11 @@ MAINTAINER Luís de Sousa <luis.desousa@wur.nl>
# Not sure yet what this does # Not sure yet what this does
ENV DEBIAN_FRONTEND noninteractive ENV DEBIAN_FRONTEND noninteractive
RUN apt-get update RUN apt update
RUN apt-get install python-pip python-dev nginx RUN apt -y install python-pip python-dev nginx
RUN pip install -r ./requirements.txt
COPY ./requirements.txt /tmp/requirements.txt
RUN pip install -r /tmp/requirements.txt
# Is this needed? # Is this needed?
#RUN mkdir -p /var/www/wsm.app #RUN mkdir -p /var/www/wsm.app
...@@ -14,6 +16,7 @@ RUN pip install -r ./requirements.txt ...@@ -14,6 +16,7 @@ RUN pip install -r ./requirements.txt
COPY configs/wsm.rest.nginx /etc/nginx/sites-enabled/wsm.rest COPY configs/wsm.rest.nginx /etc/nginx/sites-enabled/wsm.rest
COPY configs/wsm.rest.service /etc/systemd/system/wsm.rest.service COPY configs/wsm.rest.service /etc/systemd/system/wsm.rest.service
RUN systemctl start myproject # Apparently, these must be run
RUN systemctl enable myproject RUN /bin/systemctl start myproject
RUN systemctl restart nginx RUN /bin/systemctl enable myproject
\ No newline at end of file RUN /bin/systemctl restart nginx
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment