Forgotten Dockerfile :)

This commit is contained in:
Stanislav Nikitin 2019-09-25 21:23:30 +05:00
parent da0942e794
commit d33062598e
No known key found for this signature in database
GPG Key ID: 106900B32F8192EE
1 changed files with 14 additions and 0 deletions

14
Dockerfile Normal file
View File

@ -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. <pztrn@pztrn.name>"
COPY --from=build /go/src/gitlab.com/pztrn/opensaps/opensaps /app/opensaps
EXPOSE 25544
ENTRYPOINT [ "/app/opensaps", "-config", "/app/opensaps.yaml" ]