Skip to content

Commit 858271b

Browse files
committed
feat: add /traefik/plugins volume
1 parent 01c00c1 commit 858271b

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

arch.dockerfile

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,13 +38,15 @@
3838
pv ${BUILD_TAR} | tar xz; \
3939
eleven distroless ${BUILD_BIN};
4040

41-
# :: FILE-SYSTEM
41+
# :: FILE SYSTEM
4242
FROM alpine AS file-system
4343
ARG APP_ROOT
4444

4545
RUN set -ex; \
4646
mkdir -p /distroless${APP_ROOT}/var; \
47-
mkdir -p /distroless/plugins-storage;
47+
mkdir -p /distroless${APP_ROOT}/plugins; \
48+
mkdir -p ${APP_ROOT}/plugins; \
49+
ln -sf ${APP_ROOT}/plugins /distroless/plugins-storage;
4850

4951

5052
# ╔═════════════════════════════════════════════════════╗
@@ -76,7 +78,7 @@
7678
COPY --from=distroless / /
7779
COPY --from=distroless-curl / /
7880
COPY --from=build /distroless/ /
79-
COPY --from=file-system /distroless/ /
81+
COPY --from=file-system --chown=${APP_UID}:${APP_GID} /distroless/ /
8082

8183
# :: Volumes
8284
VOLUME ["${APP_ROOT}/var"]

0 commit comments

Comments
 (0)