fix: start web services in Portainer Swarm
This commit is contained in:
@@ -18,5 +18,10 @@ ENV WEB_INDEX=index.html PUBLIC_HOST=invalid.example S3_PUBLIC_ENDPOINT=https://
|
||||
COPY --from=policy /build/default.conf.template /etc/nginx/templates/default.conf.template
|
||||
COPY dtf-site.html /usr/share/nginx/html/index.html
|
||||
COPY local/static/ /usr/share/nginx/html/
|
||||
# The official entrypoint renders the server configuration at startup and Nginx
|
||||
# writes its PID/cache files. Keep the service non-root while granting it
|
||||
# ownership of only those runtime locations. This works in Docker Swarm,
|
||||
# where the previous read-only/tmpfs combination was not mounted as expected.
|
||||
RUN chown -R 101:101 /etc/nginx/conf.d /var/cache/nginx /run
|
||||
USER 101:101
|
||||
EXPOSE 8080
|
||||
|
||||
Reference in New Issue
Block a user