2022-06-29 00:37:02 +05:00
|
|
|
FROM code.pztrn.name/containers/mirror/golang:1.18.3-alpine AS build
|
2019-09-25 21:23:30 +05:00
|
|
|
|
|
|
|
WORKDIR /go/src/gitlab.com/pztrn/opensaps
|
|
|
|
COPY . .
|
|
|
|
|
|
|
|
RUN go build
|
|
|
|
|
2022-06-29 00:37:02 +05:00
|
|
|
FROM code.pztrn.name/containers/mirror/alpine:3.16.0
|
2019-09-25 21:23:30 +05:00
|
|
|
LABEL maintainer "Stanislav N. <pztrn@pztrn.name>"
|
|
|
|
|
|
|
|
COPY --from=build /go/src/gitlab.com/pztrn/opensaps/opensaps /app/opensaps
|
|
|
|
|
|
|
|
EXPOSE 25544
|
|
|
|
ENTRYPOINT [ "/app/opensaps", "-config", "/app/opensaps.yaml" ]
|