Skip to content

Commit

Permalink
install ca-certificates openssl
Browse files Browse the repository at this point in the history
  • Loading branch information
oinume committed Aug 10, 2024
1 parent f366573 commit d5a8a85
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,12 @@ WORKDIR /src
RUN --mount=type=cache,target=/go/pkg/mod/ \
--mount=type=bind,source=go.mod,target=go.mod \
go mod download -x

RUN --mount=type=cache,target=/go/pkg/mod/ \
--mount=type=bind,target=. \
CGO_ENABLED=0 go build -v -o /bin/app

FROM debian:bookworm-slim AS final

RUN apt-get install -y ca-certificates openssl
ARG UID=10001
RUN adduser \
--disabled-password \
Expand All @@ -22,7 +21,5 @@ RUN adduser \
--uid "${UID}" \
appuser
USER appuser

COPY --from=build /bin/app /bin/

ENTRYPOINT ["/bin/app"]

0 comments on commit d5a8a85

Please sign in to comment.