Skip to content

Instantly share code, notes, and snippets.

@Createdd
Created September 26, 2020 14:57
Show Gist options
  • Save Createdd/ee1c6fc53924766753001c123d6dade3 to your computer and use it in GitHub Desktop.
Save Createdd/ee1c6fc53924766753001c123d6dade3 to your computer and use it in GitHub Desktop.
FROM python:3.7
ENV PYTHONDONTWRITEBYTECODE=1
ENV PYTHONUNBUFFERED=1
ENV FLASK_APP=app.py
ENV FLASK_ENV=development
# install system dependencies
RUN apt-get update \
&& apt-get -y install gcc make \
&& rm -rf /var/lib/apt/lists/*s
RUN python3 --version
RUN pip3 --version
RUN pip install --no-cache-dir --upgrade pip
WORKDIR /app
COPY ./requirements.txt /app/requirements.txt
RUN pip3 install --no-cache-dir -r requirements.txt
COPY . .
EXPOSE 8080
CMD ["gunicorn", "--bind", "0.0.0.0:8080", "app:app"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment