@@ -9,8 +9,8 @@ RUN rm /etc/apt/apt.conf.d/docker-clean
9
9
# Configure Python to print tracebacks on crash [1], and to not buffer stdout and stderr [2].
10
10
# [1] https://docs.python.org/3/using/cmdline.html#envvar-PYTHONFAULTHANDLER
11
11
# [2] https://docs.python.org/3/using/cmdline.html#envvar-PYTHONUNBUFFERED
12
- ENV PYTHONFAULTHANDLER 1
13
- ENV PYTHONUNBUFFERED 1
12
+ ENV PYTHONFAULTHANDLER= 1
13
+ ENV PYTHONUNBUFFERED= 1
14
14
{%- endif %}
15
15
16
16
# Create a non-root user and switch to it [1].
@@ -23,8 +23,8 @@ RUN groupadd --gid $GID user && \
23
23
USER user
24
24
25
25
# Create and activate a virtual environment.
26
- ENV VIRTUAL_ENV /opt/{{ cookiecutter.__project_name_kebab_case }}-env
27
- ENV PATH $VIRTUAL_ENV/bin:$PATH
26
+ ENV VIRTUAL_ENV= /opt/{{ cookiecutter.__project_name_kebab_case }}-env
27
+ ENV PATH= $VIRTUAL_ENV/bin:$PATH
28
28
RUN python -m venv $VIRTUAL_ENV
29
29
30
30
# Set the working directory.
@@ -37,8 +37,8 @@ FROM base AS poetry
37
37
USER root
38
38
39
39
# Install Poetry in separate venv so it doesn't pollute the main venv.
40
- ENV POETRY_VERSION 2.0.1
41
- ENV POETRY_VIRTUAL_ENV /opt/poetry-env
40
+ ENV POETRY_VERSION= 2.0.1
41
+ ENV POETRY_VIRTUAL_ENV= /opt/poetry-env
42
42
RUN --mount=type=cache,target=/root/.cache/pip/ \
43
43
python -m venv $POETRY_VIRTUAL_ENV && \
44
44
$POETRY_VIRTUAL_ENV/bin/pip install poetry~=$POETRY_VERSION && \
@@ -93,7 +93,7 @@ RUN mkdir -p /opt/build/poetry/ && cp poetry.lock /opt/build/poetry/ && \
93
93
mkdir -p /opt/build/git/ && cp .git/hooks/commit-msg .git/hooks/pre-commit /opt/build/git/
94
94
95
95
# Configure the non-root user's shell.
96
- ENV ANTIDOTE_VERSION 1.9.7
96
+ ENV ANTIDOTE_VERSION= 1.9.7
97
97
RUN git clone --branch v$ANTIDOTE_VERSION --depth=1 https://github.com/mattmc3/antidote.git ~/.antidote/ && \
98
98
echo 'zsh-users/zsh-syntax-highlighting' >> ~/.zsh_plugins.txt && \
99
99
echo 'zsh-users/zsh-autosuggestions' >> ~/.zsh_plugins.txt && \
0 commit comments