Skip to content

Instantly share code, notes, and snippets.

@aballah-chamakh
Created November 9, 2019 07:23
Show Gist options
  • Select an option

  • Save aballah-chamakh/bed83480b9108780c51767429fc925a8 to your computer and use it in GitHub Desktop.

Select an option

Save aballah-chamakh/bed83480b9108780c51767429fc925a8 to your computer and use it in GitHub Desktop.
FROM python:3.6 # base image
RUN mkdir src # create a src directory
WORKDIR /src # change directory to src
ADD . /src/ # add the django code to src
RUN pip install requirements.txt # install the python library
CMD ["gunicorn","MyApp.wsgi:application","--bind 0.0.0.0:9000"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment