Skip to content

Commit 597d518

Browse files
committed
chore(example): update Dockerfile
1 parent eeca229 commit 597d518

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

example/Dockerfile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
# syntax=docker/dockerfile:1
2+
# check=skip=SecretsUsedInArgOrEnv
23

34
ARG ALPINE_VERSION=3.21
45

56
FROM ghcr.io/kjdev/nginx-auth-jwt/nginx AS auth-jwt
67
FROM ghcr.io/kjdev/nginx-keyval/nginx AS keyval
78

89
### nginx ###
9-
FROM alpine:${ALPINE_VERSION} as nginx
10+
FROM alpine:${ALPINE_VERSION} AS nginx
1011

1112
RUN apk --no-cache upgrade \
1213
&& apk --no-cache add \
@@ -22,7 +23,7 @@ RUN apk --no-cache upgrade \
2223
&& rm -f /etc/nginx/http.d/default.conf \
2324
&& mkdir -p /etc/nginx/conf.d \
2425
&& mkdir -p /var/cache/nginx \
25-
&& chown -R nginx. /etc/nginx/conf.d /etc/nginx/http.d /var/cache/nginx
26+
&& chown -R nginx:nginx /etc/nginx/conf.d /etc/nginx/http.d /var/cache/nginx
2627

2728
COPY --from=auth-jwt /usr/lib/nginx/modules/ngx_http_auth_jwt_module.so /usr/lib/nginx/modules/
2829
COPY --from=auth-jwt /etc/nginx/modules/auth_jwt.conf /etc/nginx/modules/

0 commit comments

Comments
 (0)