-
-
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.
Merge pull request #15 from sebadob/dockerfile-per-target
splite the Dockerfile because of a bug with ARG
- Loading branch information
Showing
7 changed files
with
97 additions
and
8 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,7 +6,7 @@ WORKDIR /work | |
# the correct access rights | ||
RUN mkdir data | ||
|
||
FROM scratch | ||
FROM alpine:3.18.3 | ||
|
||
ARG BINARY | ||
|
||
|
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,21 @@ | ||
FROM alpine:3.18.3 AS builderBackend | ||
|
||
WORKDIR /work | ||
|
||
# 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 alpine:3.18.3 | ||
|
||
USER 10001:10001 | ||
|
||
WORKDIR /app | ||
|
||
COPY --chown=10001:10001 /out/rauthy ./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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
FROM alpine:3.18.3 AS builderBackend | ||
|
||
WORKDIR /work | ||
|
||
# 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 alpine:3.18.3 | ||
|
||
USER 10001:10001 | ||
|
||
WORKDIR /app | ||
|
||
COPY --chown=10001:10001 /out/rauthy ./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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
FROM alpine:3.18.3 AS builderBackend | ||
|
||
WORKDIR /work | ||
|
||
# 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 | ||
#FROM alpine:3.18.3 | ||
|
||
USER 10001:10001 | ||
|
||
WORKDIR /app | ||
|
||
COPY --chown=10001:10001 /out/rauthy-lite ./rauthy-lite | ||
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-lite"] |
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,22 @@ | ||
FROM alpine:3.18.3 AS builderBackend | ||
|
||
WORKDIR /work | ||
|
||
# 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 | ||
#FROM alpine:3.18.3 | ||
|
||
USER 10001:10001 | ||
|
||
WORKDIR /app | ||
|
||
COPY --chown=10001:10001 /out/rauthy-lite ./rauthy-lite | ||
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-lite"] |
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