Ajusta nginx user
This commit is contained in:
@@ -15,10 +15,9 @@ RUN rm -rf node_modules
|
||||
|
||||
FROM nginx:1.27-alpine
|
||||
|
||||
COPY nginx.conf /etc/nginx/conf.d/default.conf
|
||||
RUN mkdir -p /var/cache/nginx /var/run/nginx
|
||||
|
||||
COPY nginx.conf /etc/nginx/conf.d/default.conf
|
||||
COPY --from=build /app/dist /usr/share/nginx/html
|
||||
|
||||
EXPOSE 80
|
||||
|
||||
USER nginx
|
||||
|
||||
Reference in New Issue
Block a user