Skip to content

Commit 81e56ed

Browse files
[feat] improve angular docker file
1 parent 6d27ae4 commit 81e56ed

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

content/guides/angular/containerize.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ USER nginx
160160
COPY nginx.conf /etc/nginx/nginx.conf
161161

162162
# Copy the static build output from the build stage to Nginx's default HTML serving directory
163-
COPY --chown=nginx:root --from=builder /app/dist/*/browser /usr/share/nginx/html
163+
COPY --chown=nginx:nginx --from=builder /app/dist/*/browser /usr/share/nginx/html
164164

165165
# Expose port 8080 to allow HTTP traffic
166166
# Note: The default NGINX container now listens on port 8080 instead of 80

0 commit comments

Comments
 (0)