generated from shanilhirani/seed
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
build(dockerfile): update dockerfile to include certs package from al…
…pine image (#19)
- Loading branch information
1 parent
1e2e270
commit 9499703
Showing
2 changed files
with
21 additions
and
1 deletion.
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 +1,7 @@ | ||
## Unreleased | ||
## v0.1.0-alpha1 (2024-09-18) | ||
|
||
### Fix | ||
|
||
- **goreleaser**: support for arm64 and single binaries (#18) | ||
|
||
## v0.1.0-alpha (2024-09-17) |
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,3 +1,17 @@ | ||
# Build stage: Use a base image with certificates to build the final image | ||
FROM alpine:latest AS base | ||
|
||
# Copy the CA certificates from Alpine to a separate build stage | ||
RUN apk --no-cache add ca-certificates | ||
|
||
# Final stage: Use scratch as the base image | ||
FROM scratch | ||
|
||
# Copy the compiled Go binary into the container | ||
COPY go-credly / | ||
|
||
# Copy the CA certificates from the previous build stage | ||
COPY --from=base /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ca-certificates.crt | ||
|
||
# Set the binary as the entrypoint | ||
ENTRYPOINT ["/go-credly"] |