Skip to content

Commit

Permalink
chore: use debian image instead of ubuntu
Browse files Browse the repository at this point in the history
  • Loading branch information
tanmoysrt committed Apr 28, 2024
1 parent a371ef5 commit 80a2bfb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@ COPY . .
RUN --mount=type=cache,target=/root/.cache/go-build go build -o goapp .

# final stage
FROM --platform=$BUILDPLATFORM ubuntu:22.04
FROM --platform=$BUILDPLATFORM debian:bookworm
RUN mkdir /app
RUN mkdir /data
WORKDIR /app
COPY --from=build-env /src/goapp /app/goapp
RUN chmod +x /app/goapp
RUN apt-get update && apt-get install -y ca-certificates
RUN apt-get update -y && apt-get install -y ca-certificates
ENTRYPOINT /app/goapp

0 comments on commit 80a2bfb

Please sign in to comment.