-
-
Notifications
You must be signed in to change notification settings - Fork 27
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
sd
committed
Jul 5, 2023
1 parent
f1d16d7
commit 1a7e79d
Showing
3 changed files
with
39 additions
and
40 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,32 @@ | ||
FROM rust:1.70-alpine3.18 AS builderBackend | ||
|
||
WORKDIR /work | ||
|
||
COPY migrations/ ./migrations/ | ||
COPY rauthy-common/ ./rauthy-common/ | ||
COPY rauthy-handlers/ ./rauthy-handlers/ | ||
COPY rauthy-main/ ./rauthy-main/ | ||
COPY rauthy-models/ ./rauthy-models/ | ||
COPY rauthy-service/ ./rauthy-service/ | ||
COPY static ./static/ | ||
COPY templates ./templates/ | ||
COPY Cargo.* ./ | ||
|
||
RUN mkdir data | ||
|
||
FROM alpine:3.18.2 | ||
#FROM gcr.io/distroless/cc:debug | ||
#FROM gcr.io/distroless/cc | ||
|
||
USER 10001:10001 | ||
|
||
WORKDIR /app | ||
|
||
#COPY --chown=10001:10001 --from=builderBackend /work/target/release/rauthy . | ||
COPY --chown=10001:10001 /out/rauthy . | ||
COPY --chown=10001:10001 --from=builderBackend /work/data ./data | ||
|
||
COPY --chown=10001:10001 tls/ ./tls/ | ||
COPY --chown=10001:10001 rauthy.deploy.cfg ./rauthy.cfg | ||
|
||
CMD ["/app/rauthy"] |
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