Skip to content

Commit

Permalink
chore: enable image for readOnlyRootFilesystem
Browse files Browse the repository at this point in the history
  • Loading branch information
evegufy committed Jan 31, 2024
1 parent 2a71133 commit a747384
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .conf/Dockerfile.prebuilt
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,9 @@ COPY build /usr/share/nginx/html
# Change to root user for renaming of index.html to index.html.reference, to be used by env variables inject script
USER root
RUN mv /usr/share/nginx/html/index.html /usr/share/nginx/html/index.html.reference
# Add env variables inject script and mark as executable
# Add env variables inject script, mark as executable and make nginx user owner
COPY ./scripts/inject-dynamic-env.sh /docker-entrypoint.d/00-inject-dynamic-env.sh
RUN chmod +x /docker-entrypoint.d/00-inject-dynamic-env.sh
RUN chmod +x /docker-entrypoint.d/00-inject-dynamic-env.sh && chown -R 101:101 /docker-entrypoint.d/00-inject-dynamic-env.sh
# Install bash for env variables inject script
RUN apk update && apk add --no-cache bash
# Make nginx owner of /usr/share/nginx/html/ and change to nginx user
Expand Down

0 comments on commit a747384

Please sign in to comment.