Skip to content

Commit 793cbc9

Browse files
authored
moved the ARG & ENV to prod stage (#313)
1 parent 3ca3a3f commit 793cbc9

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Dockerfile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -60,10 +60,6 @@ CMD [ "sh", "-c", "yarn prisma:setup:dev && yarn dev:worker" ]
6060
# Production Node Modules stage
6161
FROM node:18.15.0-alpine AS prod-dependencies
6262

63-
# Setting ENV variables for image information
64-
ARG ENGINE_VERSION
65-
ENV ENGINE_VERSION=${ENGINE_VERSION}
66-
6763
# Install build dependencies
6864
RUN apk add --no-cache g++ make py3-pip openssl
6965

@@ -104,6 +100,10 @@ RUN apk del g++ make py3-pip openssl
104100
# Production stage
105101
FROM node:18.15.0-alpine AS prod
106102

103+
# Setting ENV variables for image information
104+
ARG ENGINE_VERSION
105+
ENV ENGINE_VERSION=${ENGINE_VERSION}
106+
107107
# Install tini
108108
RUN apk add --no-cache tini
109109

0 commit comments

Comments
 (0)