-
-
Notifications
You must be signed in to change notification settings - Fork 84
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1049 from shlinkio/develop
Release 4.0.1
- Loading branch information
Showing
4 changed files
with
28 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,9 +7,16 @@ RUN cd /shlink-web-client && npm ci && npm run build | |
FROM nginxinc/nginx-unprivileged:1.25-alpine | ||
ARG UID=101 | ||
LABEL maintainer="Alejandro Celaya <[email protected]>" | ||
|
||
USER root | ||
RUN rm -r /usr/share/nginx/html && rm /etc/nginx/conf.d/default.conf | ||
USER $UID | ||
COPY config/docker/nginx.conf /etc/nginx/conf.d/default.conf | ||
COPY scripts/docker/servers_from_env.sh /docker-entrypoint.d/30-shlink-servers-json.sh | ||
COPY --from=node /shlink-web-client/build /usr/share/nginx/html | ||
|
||
# This is required by 30-shlink-servers-json.sh to be writable for UID | ||
RUN echo '[]' > /usr/share/nginx/html/servers.json \ | ||
&& chown $UID:0 /usr/share/nginx/html/servers.json | ||
|
||
# Switch to non-privileged UID as the last step | ||
USER $UID |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.