Files
GenerationsHeritage/cmd/auth/dockerfile

18 lines
356 B
Plaintext

FROM arm64v8/golang:1.23.4-alpine AS build
WORKDIR /app
COPY . .
RUN go get ./...
RUN GOOS=linux GOARCH=arm64 go build -o auth-service
RUN apk update && apk add ca-certificates && update-ca-certificates
FROM arm64v8/busybox:1.36.1
COPY --from=build /etc/ssl/certs /etc/ssl/certs
COPY --from=build /app/auth-service /app/
CMD [ "/app/auth-service" ]