2023-06-02 11:59:25 +00:00
|
|
|
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
|
2023-06-02 11:59:25 +00:00
|
|
|
|
|
|
|
EXPOSE 8080
|
|
|
|
CMD ["/srv/idfm-api"]
|
|
|
|
|
2023-06-02 12:58:49 +00:00
|
|
|
RUN apk add --no-cache tzdata
|
|
|
|
|
2023-06-02 11:59:25 +00:00
|
|
|
COPY --from=build /go/src/git.nemunai.re/idfm-api/idfm-api /srv/idfm-api
|