Content-Length: 266700 | pFad | https://github.com/sebadob/rauthy/commit/4531ae93d453429a54198211b7d122dada452ae4

FC cleanup Dockerfiles · sebadob/rauthy@4531ae9 · GitHub
Skip to content

Commit

Permalink
cleanup Dockerfiles
Browse files Browse the repository at this point in the history
  • Loading branch information
Sebastian Dobe committed Jul 8, 2023
1 parent 1489efe commit 4531ae9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 30 deletions.
15 changes: 3 additions & 12 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,17 +1,9 @@
FROM rust:1.70-alpine3.18 AS builderBackend
FROM 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.* ./

# Just a workaroudn to get an empty dir and be able to copy it over to scratch with
# the correct access rights
RUN mkdir data

FROM scratch
Expand All @@ -20,7 +12,6 @@ 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

Expand Down
19 changes: 1 addition & 18 deletions Dockerfile.debug
Original file line number Diff line number Diff line change
@@ -1,19 +1,3 @@
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
Expand All @@ -22,9 +6,8 @@ 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
RUN mkdir data

COPY --chown=10001:10001 tls/ ./tls/
COPY --chown=10001:10001 rauthy.deploy.cfg ./rauthy.cfg
Expand Down

0 comments on commit 4531ae9

Please sign in to comment.








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: https://github.com/sebadob/rauthy/commit/4531ae93d453429a54198211b7d122dada452ae4

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy