Fix static directory in the container

This commit is contained in:
Mo 2023-02-25 22:17:59 +01:00
parent 3f2d22ba47
commit a5470ae857
2 changed files with 2 additions and 1 deletions

1
.gitignore vendored
View file

@ -2,6 +2,7 @@
/target/
# Dev
/dev_data/
config.yaml
log.txt

View file

@ -16,5 +16,5 @@ FROM docker.io/library/debian:stable-slim AS runtime
WORKDIR app
ENV CF_CONFIG_FILE=/volumes/data/config.yaml
COPY --from=builder /app/target/release/contact-form /usr/local/bin/contact-form
COPY --from=builder /app/static .
COPY --from=builder /app/static/ ./static/
CMD ["contact-form"]