Skip to content

Commit e169bb7

Browse files
author
Matt Loberg
authored
fix: use update ENV syntax (#13)
ENV key value is deprecated
1 parent 6d01a37 commit e169bb7

File tree

6 files changed

+5
-15
lines changed

6 files changed

+5
-15
lines changed

3.11/Dockerfile

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,7 @@
22
# syntax=docker/dockerfile:1
33
FROM python:3.11-slim-bookworm
44

5-
ENV SERVICE_ROOT /service
6-
ENV SERVICE_USER service
7-
ENV SERVICE_UID 1001
5+
ENV SERVICE_ROOT=/service SERVICE_USER=service SERVICE_UID=1001
86

97
ARG TARGETARCH
108

3.12/base/Dockerfile

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,7 @@
22
# syntax=docker/dockerfile:1
33
FROM python:3.12-slim-bookworm
44

5-
ENV SERVICE_ROOT /service
6-
ENV SERVICE_USER service
7-
ENV SERVICE_UID 1001
5+
ENV SERVICE_ROOT=/service SERVICE_USER=service SERVICE_UID=1001
86

97
ARG TARGETARCH
108

3.12/pytorch/Dockerfile

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,7 @@
33
# syntax=docker/dockerfile:1
44
FROM python:3.12-slim-bookworm
55

6-
ENV SERVICE_ROOT /service
7-
ENV SERVICE_USER service
8-
ENV SERVICE_UID 1001
6+
ENV SERVICE_ROOT=/service SERVICE_USER=service SERVICE_UID=1001
97

108
ARG TARGETARCH
119

@@ -22,9 +20,7 @@ ADD --chmod=755 https://raw.githubusercontent.com/vishnubob/wait-for-it/81b1373f
2220

2321
# Environment variables for PyTorch version and CUDA version
2422
# Set build arguments for PyTorch version
25-
ENV PYTORCH_VERSION=2.3.1
26-
ENV TORCHVISION_VERSION=0.18.1
27-
ENV CUDA_VERSION=12.1
23+
ENV PYTORCH_VERSION=2.3.1 TORCHVISION_VERSION=0.18.1 CUDA_VERSION=12.1
2824

2925
# Install PyTorch
3026
# Added to satisfy linter

3.13/base/Dockerfile

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,7 @@
22
# syntax=docker/dockerfile:1
33
FROM python:3.13-slim-bookworm
44

5-
ENV SERVICE_ROOT /service
6-
ENV SERVICE_USER service
7-
ENV SERVICE_UID 1001
5+
ENV SERVICE_ROOT=/service SERVICE_USER=service SERVICE_UID=1001
86

97
ARG TARGETARCH
108

0 commit comments

Comments
 (0)