Skip to content

Commit

Permalink
build(dockerfile): update dockerfile to include certs package from al…
Browse files Browse the repository at this point in the history
…pine image (#19)
  • Loading branch information
shanilhirani authored Sep 19, 2024
1 parent 1e2e270 commit 9499703
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 1 deletion.
8 changes: 7 additions & 1 deletion CHANGELOG.md
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)
14 changes: 14 additions & 0 deletions Dockerfile
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"]

0 comments on commit 9499703

Please sign in to comment.