Skip to content

Commit 2247bcd

Browse files
committed
removed arg and writing secret file in container
1 parent adf8213 commit 2247bcd

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

Dockerfile

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,6 @@
77
# Build stage with secrets
88
FROM nvidia/cuda:12.2.0-base-ubuntu22.04 AS builder
99

10-
# Get arguments
11-
# Secrets
12-
ARG GCP_STORAGE_JSON_FILE
13-
ARG MODELS_API_ENV_FILE
14-
1510
RUN apt-get update && apt-get install -y git curl && apt-get clean
1611

1712
# Work directory of the application
@@ -20,11 +15,6 @@ WORKDIR /src
2015
# Copy contents to src/
2116
COPY . .
2217

23-
# Write secrets
24-
RUN mkdir -p secrets && \
25-
echo "${GCP_STORAGE_JSON_FILE}" | base64 -d > secrets/gcp-storage.json && \
26-
echo "${MODELS_API_ENV_FILE}" | base64 -d > secrets/models-api.env
27-
2818
# Image (OS) type
2919
FROM nvidia/cuda:12.2.0-base-ubuntu22.04
3020

0 commit comments

Comments
 (0)