-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
RDGRS-811: add build with FIPS and non-FIPS
- Loading branch information
Showing
2 changed files
with
12 additions
and
3 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 |
---|---|---|
@@ -1,10 +1,18 @@ | ||
# Dockerfile | ||
ARG BASE_REG=edencore.azurecr.io/ | ||
|
||
# FIPS and non-FIPS build | ||
FROM ${BASE_REG}cg_fips/go:1.22 as build | ||
WORKDIR /app | ||
COPY . . | ||
RUN go mod download | ||
RUN go build -o outsystemscc | ||
# TODO: Import the FIPS module when it is required only | ||
# - main.go: import _ "crypto/tls/fipsonly" | ||
RUN go build -tags=requirefips -o outsystemscc-fips | ||
|
||
# Package the final image | ||
FROM ${BASE_REG}cg_fips/chainguard_base-fips:latest | ||
COPY --from=build /app/outsystemscc /app/ | ||
ENTRYPOINT ["/app/outsystemscc"] | ||
COPY --from=build /app/outsystemscc-fips /app/ | ||
ENTRYPOINT ["/app/outsystemscc-fips"] |
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