fix(frontend): allow non-root nginx pid writes
This commit is contained in:
parent
95911f3137
commit
c9e0cdf157
@ -16,7 +16,7 @@ WORKDIR /usr/share/nginx/html
|
|||||||
# Minimal nginx config with SPA fallback.
|
# Minimal nginx config with SPA fallback.
|
||||||
COPY frontend/nginx.conf /etc/nginx/conf.d/default.conf
|
COPY frontend/nginx.conf /etc/nginx/conf.d/default.conf
|
||||||
COPY --chown=nginx:nginx --from=build /app/dist ./
|
COPY --chown=nginx:nginx --from=build /app/dist ./
|
||||||
RUN chown -R nginx:nginx /etc/nginx/conf.d /usr/share/nginx/html /var/cache/nginx /var/run
|
RUN chown -R nginx:nginx /etc/nginx/conf.d /usr/share/nginx/html /var/cache/nginx /run /var/run
|
||||||
|
|
||||||
EXPOSE 8080
|
EXPOSE 8080
|
||||||
USER nginx
|
USER nginx
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user