[add] initial commit
This commit is contained in:
21
kweb/Dockerfile
Normal file
21
kweb/Dockerfile
Normal file
@@ -0,0 +1,21 @@
|
||||
FROM nginx:1.17.9-alpine
|
||||
|
||||
ARG USER_UUID=12000
|
||||
ARG USER_GUID=12000
|
||||
ARG GROUP_NAME=proxy
|
||||
ARG USER_NAME=proxy
|
||||
|
||||
RUN set -eux; \
|
||||
addgroup -g $USER_GUID $GROUP_NAME; \
|
||||
adduser -u $USER_UUID -G $GROUP_NAME -s /sbin/nologin -D $USER_NAME;
|
||||
|
||||
# create temp dir for service
|
||||
RUN mkdir -p /service/temp \
|
||||
&& chown -R $USER_NAME:$GROUP_NAME /service/temp
|
||||
|
||||
# copy configuration and entrypoint.sh
|
||||
COPY ./files/nginx.conf /etc/nginx/nginx.conf
|
||||
|
||||
COPY ./files/index.html /service/html/index.html
|
||||
|
||||
USER $USER_NAME
|
||||
Reference in New Issue
Block a user