Dockerfile 599 Bytes
Newer Older
1
2
3
4
5
6
FROM ubuntu:16.04
MAINTAINER Luís de Sousa <luis.desousa@wur.nl>

# Not sure yet what this does
ENV DEBIAN_FRONTEND noninteractive

7
8
9
10
11
RUN apt update
RUN apt -y install python-pip python-dev nginx

COPY ./requirements.txt /tmp/requirements.txt
RUN pip install -r /tmp/requirements.txt
12
13
14
15
16
17
18

# Is this needed?
#RUN mkdir -p /var/www/wsm.app

COPY configs/wsm.rest.nginx /etc/nginx/sites-enabled/wsm.rest
COPY configs/wsm.rest.service /etc/systemd/system/wsm.rest.service

19
20
21
22
# Apparently, these must be run
RUN /bin/systemctl start myproject
RUN /bin/systemctl enable myproject
RUN /bin/systemctl restart nginx