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

4
5
6
7
8
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
9

10
11
12
13
14
15
16
17
# Expose port 80
EXPOSE 80

# Build it
# docker build -t ldesousa/wsm.rest .

# Run command
# docker run -dit -v /home/duque004/git/wsm.rest:/var/www/wsm.rest --name wsm.rest -p 8081:80 ldesousa/wsm.rest
18

19
20
21
22
# Attach to the container and run the startup script
# docker attach wsm.rest
# sh /var/www/wsm.rest/configs/startup.sh
# Ctrl+P Ctrl+Q
23