Skip to content

Instantly share code, notes, and snippets.

@afaqk9394
Created March 5, 2020 01:28
Show Gist options
  • Save afaqk9394/59a4728833a98343413c5e8f2cf29179 to your computer and use it in GitHub Desktop.
Save afaqk9394/59a4728833a98343413c5e8f2cf29179 to your computer and use it in GitHub Desktop.
FROM ubuntu:16.04
MAINTANER Your Name "admin@fullstacknetworker.com"
RUN apt-get update -y && \
apt-get install -y python-pip python-dev
# We copy just the requirements.txt first to leverage Docker cache
COPY ./requirements.txt /app/requirements.txt
WORKDIR /app
RUN pip install -r requirements.txt
COPY . /app
ENTRYPOINT [ "python" ]
CMD [ "app.py" ]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment