From d33062598e41cdf61d722f192ea6c06a2385c9f3 Mon Sep 17 00:00:00 2001 From: "Stanislav N. aka pztrn" Date: Wed, 25 Sep 2019 21:23:30 +0500 Subject: [PATCH] Forgotten Dockerfile :) --- Dockerfile | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..6413c01 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,14 @@ +FROM golang:1.13-alpine AS build + +WORKDIR /go/src/gitlab.com/pztrn/opensaps +COPY . . + +RUN go build + +FROM alpine:3.10 +LABEL maintainer "Stanislav N. " + +COPY --from=build /go/src/gitlab.com/pztrn/opensaps/opensaps /app/opensaps + +EXPOSE 25544 +ENTRYPOINT [ "/app/opensaps", "-config", "/app/opensaps.yaml" ]