Skip to content

Instantly share code, notes, and snippets.

@fmassot
Created April 16, 2018 10:54
Show Gist options
  • Save fmassot/8c5e05d800c74609588961fd316742e0 to your computer and use it in GitHub Desktop.
Save fmassot/8c5e05d800c74609588961fd316742e0 to your computer and use it in GitHub Desktop.
DockerFile for hug
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