housekeeping

This commit is contained in:
t3chn0m4g3
2024-12-05 22:39:01 +01:00
parent 7f2667cea8
commit 59cc5c7d38
17 changed files with 39 additions and 165 deletions

View File

@ -1,7 +1,8 @@
FROM alpine:3.20 AS builder
#
# Install packages
RUN apk --no-cache -U add \
RUN apk --no-cache -U upgrade && \
apk --no-cache -U add \
build-base \
git \
python3 \
@ -18,6 +19,7 @@ RUN pyinstaller server.py \
--add-data "./uploads:./uploads"
#
FROM alpine:3.20
RUN apk --no-cache -U upgrade
COPY --from=builder /opt/miniprint/dist/* /opt/miniprint/
COPY --from=builder /opt/miniprint/fake-files/ /opt/miniprint/fake-files/
COPY --from=builder /opt/miniprint/uploads/ /opt/miniprint/uploads/