Skip to content

Commit

Permalink
Update Dockerfile to include static assets
Browse files Browse the repository at this point in the history
  • Loading branch information
Wollaston committed Feb 16, 2024
1 parent 096be74 commit 79f1d25
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -37,13 +37,18 @@ COPY --from=builder /app/target/site /app/site

# Copy Cargo.toml if it’s needed at runtime
COPY --from=builder /app/Cargo.toml /app/

# Copy static assets
COPY --from=builder /app/public /app/public

# Copy sqlite DB to /app directory
COPY --from=builder /app/content.db /app/

# Set any required env variables
ENV RUST_LOG="info"
ENV LEPTOS_SITE_ADDR="0.0.0.0:8080"
ENV LEPTOS_SITE_ROOT="site"
ENV LEPTOS_ASSETS_DIR="public"
EXPOSE 8080

# Run the server
Expand Down

0 comments on commit 79f1d25

Please sign in to comment.