Created
September 26, 2020 14:57
-
-
Save Createdd/ee1c6fc53924766753001c123d6dade3 to your computer and use it in GitHub Desktop.
This file contains 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 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