idfm-api/Dockerfile
Renovate Bot 1ae3a0c096
All checks were successful
continuous-integration/drone/push Build is passing
Update alpine Docker tag to v3.20
2024-05-24 07:58:06 +00:00

16 lines
333 B
Docker

FROM golang:1-alpine AS build
COPY . /go/src/git.nemunai.re/idfm-api
WORKDIR /go/src/git.nemunai.re/idfm-api
RUN go get -v && go generate -v && go build -v -ldflags="-s -w"
FROM alpine:3.20
EXPOSE 8080
CMD ["/srv/idfm-api"]
RUN apk add --no-cache tzdata
COPY --from=build /go/src/git.nemunai.re/idfm-api/idfm-api /srv/idfm-api