diff options
-rw-r--r-- | Dockerfile | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -2,14 +2,14 @@ FROM alpine:3.11 | |||
2 | 2 | ||
3 | COPY ./ /www/ | 3 | COPY ./ /www/ |
4 | 4 | ||
5 | ENV USER abc | 5 | ENV USER darkhttpd |
6 | ENV GROUP abc | 6 | ENV GROUP darkhttpd |
7 | ENV GID 911 | 7 | ENV GID 911 |
8 | ENV UID 911 | 8 | ENV UID 911 |
9 | 9 | ||
10 | RUN addgroup -S ${GROUP} -g ${GID} && adduser -D -S -u ${UID} ${USER} ${GROUP} && \ | 10 | RUN addgroup -S ${GROUP} -g ${GID} && adduser -D -S -u ${UID} ${USER} ${GROUP} && \ |
11 | apk add -U darkhttpd | 11 | apk add -U darkhttpd |
12 | 12 | ||
13 | USER abc | 13 | USER darkhttpd |
14 | 14 | ||
15 | ENTRYPOINT ["darkhttpd","/www/"] | 15 | ENTRYPOINT ["darkhttpd","/www/"] |