feat: move static files to directory

This commit is contained in:
Jef Roosens 2025-01-10 15:45:46 +01:00
parent 1d910bc421
commit 0375f76b65
No known key found for this signature in database
GPG key ID: 21FD3D77D56BAF49
7 changed files with 42 additions and 14 deletions

View file

@ -27,6 +27,7 @@ FROM alpine:3.21
COPY --from=builder /app/target/release/calathea /app/calathea
COPY --from=builder /app/dumb-init /app/dumb-init
COPY templates /app/templates
COPY static /app/static
# Create a non-root user & make sure it can write to the data directory
RUN set -x && \
@ -36,7 +37,8 @@ RUN set -x && \
WORKDIR /data
ENV TEMPLATE_DIR=/app/templates
ENV TEMPLATE_DIR=/app/templates \
STATIC_DIR=/app/static
USER www-data:www-data