Skip to content

Commit

Permalink
cant forget dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
ChristopherBiscardi committed Aug 31, 2024
1 parent 44b8914 commit 6532825
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ jobs:
tar -czvf static-assets.tar.gz target/site
- name: Publish GitHub Release
id: gh-release
uses: softprops/action-gh-release@v1
uses: softprops/action-gh-release@v2
with:
name: gh-${{ env.date }}-${{ github.sha }}
fail_on_unmatched_files: true
Expand All @@ -62,7 +62,7 @@ jobs:
token: ${{ secrets.RELEASE_TOKEN }}
files: |
Cargo.toml
target/release/this-week-in-bevy
target/release/www
static-assets.tar.gz
target/release/hash.txt
fly.toml
14 changes: 14 additions & 0 deletions Dockerfile
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"]

0 comments on commit 6532825

Please sign in to comment.