Skip to content

Commit 8450c45

Browse files
committed
fix: add meta info, add user and group
1 parent 7d17783 commit 8450c45

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

Dockerfile

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,10 @@ RUN fab build:${BUILD_MODE}
1818

1919
FROM alpine:latest AS final
2020

21-
COPY --from=builder /site/output /output
21+
RUN addgroup -g 33 -S www-data && adduser -u 33 -S www-data -G www-data
22+
23+
COPY --from=builder --chown=33:33 /site/output /output
24+
25+
RUN echo "Build date: $(date)" | tee -a /output/.build_info.txt
2226

2327
ENTRYPOINT ["sh", "-c", "cp -r /output/* /mnt && echo '✅ Copy done' || (echo '❌ Copy failed' && exit 1)"]

0 commit comments

Comments
 (0)