Created
April 16, 2018 10:54
-
-
Save fmassot/8c5e05d800c74609588961fd316742e0 to your computer and use it in GitHub Desktop.
DockerFile for hug
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:17.10 | |
# -- Install Pipenv: | |
RUN apt-get update \ | |
&& apt-get install software-properties-common python-software-properties -y \ | |
&& add-apt-repository ppa:pypa/ppa -y \ | |
&& apt-get update \ | |
&& apt-get install git pipenv -y | |
ENV LC_ALL C.UTF-8 | |
ENV LANG C.UTF-8 | |
# -- Install Application into container: | |
RUN set -ex && mkdir /app | |
EXPOSE 80 | |
WORKDIR /app | |
# -- Adding Pipfiles | |
COPY Pipfile Pipfile | |
COPY Pipfile.lock Pipfile.lock | |
# -- Install dependencies: | |
RUN set -ex && pipenv install --deploy --system | |
COPY . /app | |
CMD gunicorn --reload --bind=0.0.0.0:80 simexpenses.api.simulation:__hug_wsgi__ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment