Skip to content

Commit

Permalink
Revert "feat(docker): do nasty stuff and do not specify user"
Browse files Browse the repository at this point in the history
This reverts commit 7a90d77.
  • Loading branch information
H1ghBre4k3r committed Nov 12, 2023
1 parent 7a90d77 commit 9c416de
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,14 @@ ENV LEPTOS_SITE_PKG_DIR=pkg
ENV LEPTOS_SITE_ADDR="0.0.0.0:3000"
ENV LEPTOS_RELOAD_PORT=3001

USER 10001

WORKDIR /app

COPY --from=builder /work/target/site/ ./site/
COPY --from=builder /work/target/release/aoc_website .
COPY --from=builder /work/Cargo.toml .
COPY --from=builder /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/
COPY --chown=10001:10001 --from=builder /work/target/site/ ./site/
COPY --chown=10001:10001 --from=builder /work/target/release/aoc_website .
COPY --chown=10001:10001 --from=builder /work/Cargo.toml .
COPY --chown=10001:10001 --from=builder /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/

# depends on the port you choose
EXPOSE 3000
Expand Down

0 comments on commit 9c416de

Please sign in to comment.