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 257c74b commit ccec4b4Copy full SHA for ccec4b4
Dockerfile
@@ -2,6 +2,14 @@
2
3
FROM nginx:stable-alpine
4
5
+# With SDU/Hosting, we expect the containers to have `1000` as the user's ID and GID.
6
+# While we use the inbuilt `nginx` user to run the server, its id and gid are 101, so we change it here.
7
+RUN echo http://dl-2.alpinelinux.org/alpine/edge/community/ >> /etc/apk/repositories && \
8
+ apk --no-cache add shadow && \
9
+ groupmod -g 1000 nginx && \
10
+ usermod -u 1000 -g 1000 nginx && \
11
+ apk del shadow
12
+
13
RUN rm /etc/nginx/conf.d/default.conf
14
15
# Copy Nginx configuration files
0 commit comments