idfm-api/Dockerfile

16 lines
333 B
Docker
Raw Normal View History

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"
2024-05-22 19:14:46 +00:00
FROM alpine:3.20
EXPOSE 8080
CMD ["/srv/idfm-api"]
2023-06-02 12:58:49 +00:00
RUN apk add --no-cache tzdata
COPY --from=build /go/src/git.nemunai.re/idfm-api/idfm-api /srv/idfm-api