BLOG-78 feat: add volume and storage path for static files in Dockerfile
This commit is contained in:
parent
c639a85ff3
commit
5a30642b8f
@ -11,9 +11,11 @@ FROM alpine:latest AS runner
|
||||
WORKDIR /app
|
||||
COPY --from=builder /app/target/x86_64-unknown-linux-musl/release/server .
|
||||
EXPOSE 8080
|
||||
VOLUME ["/app/static"]
|
||||
ENV RUST_LOG=info
|
||||
ENV HOST=0.0.0.0
|
||||
ENV PORT=8080
|
||||
ENV STORAGE_PATH=/app/static
|
||||
ENV DATABASE_HOST=127.0.0.1
|
||||
ENV DATABASE_PORT=5432
|
||||
ENV DATABASE_USER=postgres
|
||||
|
Loading…
x
Reference in New Issue
Block a user