feat: move static files to directory
This commit is contained in:
parent
1d910bc421
commit
0375f76b65
7 changed files with 42 additions and 14 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue