Skip to content

Commit

Permalink
don't use alpine
Browse files Browse the repository at this point in the history
  • Loading branch information
frnandu committed Jan 19, 2024
1 parent 3bb846b commit 5f97fde
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ WORKDIR /build
COPY frontend ./frontend
RUN cd frontend && yarn install && yarn build

FROM golang:latest as builder
FROM golang:1.21 as builder

RUN apt-get update && \
apt-get install -y gcc
apt-get install -y gcc

ENV CGO_ENABLED=1
ENV GOOS=linux
Expand All @@ -29,7 +29,9 @@ COPY --from=frontend /build/frontend/dist ./frontend/dist
RUN go build -o main .

# Start a new, final image to reduce size.
FROM alpine as final
#FROM alpine as final

#RUN apk add libc6-compat

# FROM gcr.io/distroless/static-debian11

Expand All @@ -39,3 +41,4 @@ FROM alpine as final
COPY --from=builder /build/main /bin/

ENTRYPOINT [ "/bin/main" ]
#ENTRYPOINT ["/bin/sh","-c","sleep infinity"]

0 comments on commit 5f97fde

Please sign in to comment.