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
MAINTAINER Luís de Sousa <>
# Not sure yet what this does
ENV DEBIAN_FRONTEND noninteractive
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
# Is this needed?
#RUN mkdir -p /var/www/
# Expose port 80
# Build it
# docker build -t ldesousa/ .
# Run command
# docker run -dit -v /home/duque004/git/ --name -p 8081:80 ldesousa/
COPY configs/ /etc/nginx/sites-enabled/
COPY configs/ /etc/systemd/system/
# Attach to the container and run the startup script
# docker attach
# sh /var/www/
# 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
Supports Markdown
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