Skip to content
This repository has been archived by the owner on Feb 15, 2024. It is now read-only.

Commit

Permalink
Sets PYTHONDONTWRITEBYTECODE
Browse files Browse the repository at this point in the history
  • Loading branch information
yxtay committed Dec 6, 2023
1 parent ef182fa commit e13f342
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@ ARG HOME=/home/${USER}
RUN useradd --create-home --uid ${UID} --user-group ${USER}

# set up environment
ARG VIRTUAL_ENV=${HOME}/.venv
ENV PATH=${VIRTUAL_ENV}/bin:${PATH} \
ENV VIRTUAL_ENV=${HOME}/.venv \
PYTHONFAULTHANDLER=1 \
PYTHONUNBUFFERED=1
ENV PATH=${VIRTUAL_ENV}/bin:${PATH}

##
# dev
Expand All @@ -31,7 +31,8 @@ RUN --mount=type=cache,target=/var/cache/apt,sharing=locked \
curl \
&& rm -rf /var/lib/apt/lists/*

ENV PIP_DISABLE_PIP_VERSION_CHECK=1 \
ENV PYTHONDONTWRITEBYTECODE=1 \
PIP_DISABLE_PIP_VERSION_CHECK=1 \
PIP_NO_COMPILE=1 \
POETRY_NO_INTERACTION=1 \
POETRY_VIRTUALENVS_CREATE=0
Expand Down

0 comments on commit e13f342

Please sign in to comment.