Skip to content

Commit

Permalink
index/Dockerfile: fix docker build warnings
Browse files Browse the repository at this point in the history
This puts the ENV updates in a single
layer, and fixes the docker build warning:

LegacyKeyValueFormat: "ENV key=value" should be used instead of legacy "ENV key value" format
  • Loading branch information
pjonsson authored and alexgleith committed Sep 23, 2024
1 parent 17c6b16 commit a9c3f07
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions index/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ RUN apt-get update \
&& apt-get autoremove \
&& rm -rf /var/lib/{apt,dpkg,cache,log}

ENV VIRTUAL_ENV /virtualenv/python3.12
ENV PATH /virtualenv/python3.12/bin:$PATH
ENV VIRTUAL_ENV=/virtualenv/python3.12 \
PATH=/virtualenv/python3.12/bin:$PATH

COPY requirements.txt constraints.txt version.txt /conf/

Expand Down

0 comments on commit a9c3f07

Please sign in to comment.