Skip to content

Instantly share code, notes, and snippets.

@lu911
Last active February 22, 2017 10:52
Show Gist options
  • Save lu911/7c17c3a09bbf22d659777a6f9cec7ad0 to your computer and use it in GitHub Desktop.
Save lu911/7c17c3a09bbf22d659777a6f9cec7ad0 to your computer and use it in GitHub Desktop.
ddingdon-api
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/api/uwsgi.ini /home/release/conf/
EXPOSE 80
CMD ["uwsgi", "--ini", "/home/release/conf/uwsgi.ini"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment