Skip to content

Commit

Permalink
fix: use update ENV syntax (#13)
Browse files Browse the repository at this point in the history
ENV key value is deprecated
  • Loading branch information
mloberg authored Feb 6, 2025
1 parent 6d01a37 commit e169bb7
Show file tree
Hide file tree
Showing 6 changed files with 5 additions and 15 deletions.
File renamed without changes.
File renamed without changes.
4 changes: 1 addition & 3 deletions 3.11/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,7 @@
# syntax=docker/dockerfile:1
FROM python:3.11-slim-bookworm

ENV SERVICE_ROOT /service
ENV SERVICE_USER service
ENV SERVICE_UID 1001
ENV SERVICE_ROOT=/service SERVICE_USER=service SERVICE_UID=1001

ARG TARGETARCH

Expand Down
4 changes: 1 addition & 3 deletions 3.12/base/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,7 @@
# syntax=docker/dockerfile:1
FROM python:3.12-slim-bookworm

ENV SERVICE_ROOT /service
ENV SERVICE_USER service
ENV SERVICE_UID 1001
ENV SERVICE_ROOT=/service SERVICE_USER=service SERVICE_UID=1001

ARG TARGETARCH

Expand Down
8 changes: 2 additions & 6 deletions 3.12/pytorch/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,7 @@
# syntax=docker/dockerfile:1
FROM python:3.12-slim-bookworm

ENV SERVICE_ROOT /service
ENV SERVICE_USER service
ENV SERVICE_UID 1001
ENV SERVICE_ROOT=/service SERVICE_USER=service SERVICE_UID=1001

ARG TARGETARCH

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

# Environment variables for PyTorch version and CUDA version
# Set build arguments for PyTorch version
ENV PYTORCH_VERSION=2.3.1
ENV TORCHVISION_VERSION=0.18.1
ENV CUDA_VERSION=12.1
ENV PYTORCH_VERSION=2.3.1 TORCHVISION_VERSION=0.18.1 CUDA_VERSION=12.1

# Install PyTorch
# Added to satisfy linter
Expand Down
4 changes: 1 addition & 3 deletions 3.13/base/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,7 @@
# syntax=docker/dockerfile:1
FROM python:3.13-slim-bookworm

ENV SERVICE_ROOT /service
ENV SERVICE_USER service
ENV SERVICE_UID 1001
ENV SERVICE_ROOT=/service SERVICE_USER=service SERVICE_UID=1001

ARG TARGETARCH

Expand Down

0 comments on commit e169bb7

Please sign in to comment.