1
0
mirror of https://github.com/ebosas/microservices.git synced 2025-06-30 22:33:51 +02:00
Files
microservices/cache.Dockerfile

13 lines
313 B
Docker
Raw Normal View History

2021-11-02 16:44:51 +02:00
# FROM golang:1.17-alpine AS cache
FROM public.ecr.aws/bitnami/golang:1.17 AS cache
2021-10-10 18:49:39 +03:00
WORKDIR /go/src/app
COPY go.* .
COPY internal ./internal
RUN go mod download
COPY cmd/cache .
RUN CGO_ENABLED=0 GOOS=linux go build -ldflags '-s' -o cache .
FROM scratch
COPY --from=cache /go/src/app/cache /cache
CMD ["/cache"]