Skip to content

Commit c655d6f

Browse files
authored
fix: use new ENV key=value format in Dockerfile (#269)
1 parent daced7f commit c655d6f

File tree

1 file changed

+7
-7
lines changed
  • {{ cookiecutter.__project_name_kebab_case }}

1 file changed

+7
-7
lines changed

{{ cookiecutter.__project_name_kebab_case }}/Dockerfile

+7-7
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ RUN rm /etc/apt/apt.conf.d/docker-clean
99
# Configure Python to print tracebacks on crash [1], and to not buffer stdout and stderr [2].
1010
# [1] https://docs.python.org/3/using/cmdline.html#envvar-PYTHONFAULTHANDLER
1111
# [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
1414
{%- endif %}
1515

1616
# Create a non-root user and switch to it [1].
@@ -23,8 +23,8 @@ RUN groupadd --gid $GID user && \
2323
USER user
2424

2525
# 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
2828
RUN python -m venv $VIRTUAL_ENV
2929

3030
# Set the working directory.
@@ -37,8 +37,8 @@ FROM base AS poetry
3737
USER root
3838

3939
# 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
4242
RUN --mount=type=cache,target=/root/.cache/pip/ \
4343
python -m venv $POETRY_VIRTUAL_ENV && \
4444
$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/ && \
9393
mkdir -p /opt/build/git/ && cp .git/hooks/commit-msg .git/hooks/pre-commit /opt/build/git/
9494

9595
# Configure the non-root user's shell.
96-
ENV ANTIDOTE_VERSION 1.9.7
96+
ENV ANTIDOTE_VERSION=1.9.7
9797
RUN git clone --branch v$ANTIDOTE_VERSION --depth=1 https://github.com/mattmc3/antidote.git ~/.antidote/ && \
9898
echo 'zsh-users/zsh-syntax-highlighting' >> ~/.zsh_plugins.txt && \
9999
echo 'zsh-users/zsh-autosuggestions' >> ~/.zsh_plugins.txt && \

0 commit comments

Comments
 (0)