We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e6ea48c commit 709532dCopy full SHA for 709532d
Dockerfile
@@ -14,12 +14,20 @@ RUN yarn install --frozen-lockfile
14
RUN yarn run build
15
16
# Second stage is to build the application image
17
-FROM nginx:1.23-alpine as application
+FROM nginx:1.25-alpine as application
18
19
WORKDIR /usr/share/nginx/html
20
21
# Copy the build files from the first stage
22
COPY --from=build /app/build ./
23
24
+RUN chown -R nginx:nginx /var/cache/nginx && \
25
+ chown -R nginx:nginx /var/log/nginx && \
26
+ chown -R nginx:nginx /etc/nginx/conf.d
27
+RUN touch /var/run/nginx.pid && \
28
+ chown -R nginx:nginx /var/run/nginx.pid
29
+
30
+USER nginx:nginx
31
32
# By default, nginx expose port 80
33
# EXPOSE 80
0 commit comments