Skip to content

Instantly share code, notes, and snippets.

@kpavlovsky
Created July 3, 2020 13:36
Show Gist options
  • Save kpavlovsky/2d314c8df5fe921d4a39135d5019ee7d to your computer and use it in GitHub Desktop.
Save kpavlovsky/2d314c8df5fe921d4a39135d5019ee7d to your computer and use it in GitHub Desktop.
Dockerfile Python 3.8 Simplified
FROM python:3.8
SHELL ["/bin/bash", "-c"]
ENV PIP_NO_CACHE_DIR off
ENV PIP_DISABLE_PIP_VERSION_CHECK on
ENV PYTHONUNBUFFERED 1
ENV PYTHONDONTWRITEBYTECODE 0
WORKDIR /code/
COPY ./code/requirements.txt /code/
RUN pip install -r requirements.txt
COPY ./code/ /code/
COPY ./env/ /env/
RUN source /env/envs_export.sh && if [ -n "$BUILD_COMMAND" ]; then eval $BUILD_COMMAND; fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment