Dockerfile 507 Bytes
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
FROM ubuntu:16.04
MAINTAINER Luís de Sousa <luis.desousa@wur.nl>

# Not sure yet what this does
ENV DEBIAN_FRONTEND noninteractive

RUN apt-get update
RUN apt-get install python-pip python-dev nginx
RUN pip install -r ./requirements.txt

# 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

RUN systemctl start myproject
RUN systemctl enable myproject
RUN systemctl restart nginx