create docker-compose file

This commit is contained in:
Liam Fitzpatrick 2025-01-02 21:27:30 +00:00
parent fca29a94b5
commit 16fba0f8ea
2 changed files with 11 additions and 0 deletions

View File

@ -35,4 +35,10 @@ FROM ubuntu
WORKDIR /app
COPY --from=buildstage /app/website/target/release/website ./
COPY --from=buildstage /app/website/target/site ./site/
# Set any required env variables and
ENV RUST_LOG="info"
ENV LEPTOS_SITE_ADDR="0.0.0.0:8080"
ENV LEPTOS_SITE_ROOT="site"
CMD ./website

5
docker-compose.yml Normal file
View File

@ -0,0 +1,5 @@
services:
web:
build: .
ports:
- 8080:8080