Created
March 5, 2016 20:04
-
-
Save redmoses/c8a7cf059725fdbfb1c7 to your computer and use it in GitHub Desktop.
Flaskshell docker file
This file contains hidden or 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 ubuntu:trusty | |
MAINTAINER Red Moses <[email protected]> | |
# create required directories | |
RUN mkdir -p /app/flaskshell/logs | |
# create app user | |
RUN useradd -ms /bin/bash -d /app/flaskshell mr_app | |
# install system packages | |
RUN apt-get update; apt-get install -y python3-pip mysql-client supervisor | |
# copy requirements.pip | |
COPY config/ /app/flaskshell/config | |
# install python packages | |
RUN pip3 install -r /app/flaskshell/config/requirements.pip | |
# copy src directory | |
COPY src/ /app/flaskshell/src | |
# expose the port | |
EXPOSE 5000 | |
# set workdir | |
WORKDIR /app/flaskshell/src | |
# set entrypoint | |
ENTRYPOINT ["/usr/bin/supervisord", "-c", "/app/flaskshell/config/supervisord.conf"] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment