update: docker file to include keys in image
Build and Deploy Docker Images / build_and_deploy (push) Has been cancelled
Build and Deploy Docker Images / build_and_deploy (push) Has been cancelled
This commit is contained in:
+2
-1
@@ -34,9 +34,10 @@ RUN addgroup -S appgroup && adduser -S appuser -G appgroup
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
# Copy only production node_modules and build output
|
||||
# Copy only production node_modules, build output, and JWT keys
|
||||
COPY --from=prod-deps --chown=appuser:appgroup /temp-deps/node_modules ./node_modules
|
||||
COPY --from=builder --chown=appuser:appgroup /build/dist ./dist
|
||||
COPY --from=builder --chown=appuser:appgroup /build/keys ./keys
|
||||
COPY --chown=appuser:appgroup package.json ./
|
||||
|
||||
RUN chown -R appuser:appgroup /app
|
||||
|
||||
Reference in New Issue
Block a user