File tree Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -24,14 +24,16 @@ ENV API_KEY="**None**" \
24
24
CORS="true" \
25
25
EMBEDDING="false"
26
26
27
- COPY --chown=nginx:nginx -- chmod=0666 ./docker/default.conf.template ./docker/cors.conf ./docker/embedding.conf /etc/nginx/templates/
27
+ COPY --chmod=0644 ./docker/default.conf.template ./docker/cors.conf ./docker/embedding.conf /etc/nginx/templates/
28
28
29
- COPY --chmod=0666 ./dist/* /usr/share/nginx/html/
30
- COPY --chmod=0555 ./docker/docker-entrypoint.d/ /docker-entrypoint.d/
31
- COPY --chmod=0666 ./docker/configurator /usr/share/nginx/configurator
29
+ COPY --chmod=0644 ./dist/* /usr/share/nginx/html/
30
+ COPY --chmod=0755 ./docker/docker-entrypoint.d/ /docker-entrypoint.d/
31
+ COPY --chmod=0644 ./docker/configurator /usr/share/nginx/configurator
32
32
33
33
# Simulates running NGINX as a non root; in future we want to use nginxinc/nginx-unprivileged.
34
34
# In future we will have separate unpriviledged images tagged as v5.1.2-unprivileged.
35
- RUN chmod 777 /usr/share/nginx/html/ /etc/nginx/conf.d/ /etc/nginx/conf.d/default.conf /var/cache/nginx/ /var/run/
35
+ RUN chmod 777 /etc/nginx/conf.d/ /usr/share/nginx/html/ /var/cache/nginx/ /var/run/ && \
36
+ chmod 666 /etc/nginx/conf.d/default.conf /usr/share/nginx/html/swagger-initializer.js && \
37
+ chmod 755 /etc/nginx/templates /usr/share/nginx/configurator
36
38
37
39
EXPOSE 8080
You can’t perform that action at this time.
0 commit comments