Skip to content

Commit

Permalink
add ssl certs to docker images, needed for discord oauth
Browse files Browse the repository at this point in the history
  • Loading branch information
jackharrhy committed Sep 24, 2024
1 parent ff0cd9f commit 615d4bf
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
go.work

.idea
*.swp

output
almanac.toml
Expand Down
1 change: 1 addition & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,6 @@ RUN CGO_ENABLED=0 go build -o almanac .

FROM scratch
WORKDIR /config
COPY --from=builder /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/
COPY --from=builder /build/almanac /almanac
ENTRYPOINT ["/almanac", "serve", "--content-dir", "/content"]
1 change: 1 addition & 0 deletions goreleaser.Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
FROM scratch
WORKDIR /config
COPY --from=alpine:3 /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/
ENTRYPOINT ["/almanac", "serve", "--content-dir", "/content"]
COPY almanac /

0 comments on commit 615d4bf

Please sign in to comment.