-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
44b8914
commit 6532825
Showing
2 changed files
with
16 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
FROM ubuntu:22.04 | ||
RUN apt-get update && apt-get install -y ca-certificates && rm -rf /var/lib/apt/lists/* | ||
COPY target/release/www /usr/local/bin/www | ||
COPY target/release/hash.txt /usr/local/bin/hash.txt | ||
COPY target/site /opt/ | ||
# COPY Cargo.toml /opt/Cargo.toml | ||
WORKDIR /opt | ||
ENV RUST_LOG=info | ||
ENV LEPTOS_OUTPUT_NAME="www" | ||
ENV LEPTOS_SITE_ROOT="site" | ||
ENV LEPTOS_SITE_PKG_DIR="pkg" | ||
ENV LEPTOS_SITE_ADDR="[::]:3000" | ||
ENV LEPTOS_HASH_FILES=true | ||
CMD ["www"] |