Last active
February 22, 2017 10:52
-
-
Save lu911/73f342f06a06c2afb98bc80ae2d98577 to your computer and use it in GitHub Desktop.
ddingdon-admin
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM base:latest | |
MAINTAINER Loup <[email protected]> | |
# project setting | |
RUN mkdir /home/release && \ | |
mkdir /home/release/code && \ | |
mkdir /home/release/conf && \ | |
mkdir /home/release/tmp | |
COPY . /home/release/code | |
RUN pip install -r /home/release/code/requirements.txt | |
# uwsgi | |
COPY ./docker/admin/uwsgi.ini /home/release/conf/ | |
# nginx | |
RUN apt-get update && \ | |
apt-get install -y nginx | |
RUN ln -sf /dev/stdout /var/log/nginx/access.log && \ | |
ln -sf /dev/stderr /var/log/nginx/error.log | |
RUN echo "daemon off;" >> /etc/nginx/nginx.conf | |
RUN rm /etc/nginx/sites-enabled/default | |
COPY ./docker/admin/nginx.conf /home/release/conf/ | |
RUN ln -s /home/release/conf/nginx.conf /etc/nginx/conf.d/ | |
# supervisor | |
RUN apt-get update && apt-get install -y supervisor | |
COPY ./docker/admin/supervisor.conf /home/release/conf/ | |
EXPOSE 80 | |
CMD ["/usr/bin/supervisord", "-c", "/home/release/conf/supervisor.conf"] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment