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

Trim down Dockerfile to minimal commands.

parent ccdd53e5
FROM ubuntu:16.04 FROM ubuntu:16.04
MAINTAINER Luís de Sousa <luis.desousa@wur.nl> MAINTAINER Luís de Sousa <luis.desousa@wur.nl>
# Not sure yet what this does
ENV DEBIAN_FRONTEND noninteractive
RUN apt update RUN apt update
RUN apt -y install python-pip python-dev nginx RUN apt -y install python-pip python-dev nginx
COPY ./requirements.txt /tmp/requirements.txt COPY ./requirements.txt /tmp/requirements.txt
RUN pip install -r /tmp/requirements.txt RUN pip install -r /tmp/requirements.txt
# Is this needed? # Expose port 80
#RUN mkdir -p /var/www/wsm.app 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
COPY configs/wsm.rest.nginx /etc/nginx/sites-enabled/wsm.rest # Attach to the container and run the startup script
COPY configs/wsm.rest.service /etc/systemd/system/wsm.rest.service # docker attach wsm.rest
# sh /var/www/wsm.rest/configs/startup.sh
# Ctrl+P Ctrl+Q
# Apparently, these must be run
RUN /bin/systemctl start myproject
RUN /bin/systemctl enable myproject
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