File tree Expand file tree Collapse file tree 1 file changed +2
-10
lines changed
Expand file tree Collapse file tree 1 file changed +2
-10
lines changed Original file line number Diff line number Diff line change @@ -21,10 +21,6 @@ FROM node:20-alpine
2121# Install gettext for envsubst
2222RUN apk add --no-cache gettext
2323
24- # Create non-root user for security
25- RUN addgroup -g 1001 -S nodejs && \
26- adduser -S nodejs -u 1001
27-
2824# Copy built assets from builder stage
2925COPY --from=builder /app/dist /usr/share/nginx/html
3026
@@ -34,12 +30,8 @@ COPY server.js /usr/share/nginx/html/server.js
3430# Copy env template
3531COPY env.js.template /usr/share/nginx/html/env.js.template
3632
37- # Create config directory and set ownership
38- RUN mkdir -p /config && \
39- chown -R nodejs:nodejs /usr/share/nginx/html /config
40-
41- # Switch to non-root user
42- USER nodejs
33+ # Create config directory
34+ RUN mkdir -p /config
4335
4436# Expose port 80
4537EXPOSE 80
You can’t perform that action at this time.
0 commit comments