Make changes proposed by @pztrn

This commit is contained in:
Timur Demin
2019-07-20 14:16:06 +05:00
parent dbf82e213b
commit d9a46aa5b3
4 changed files with 5 additions and 5 deletions

15
docker/Dockerfile Normal file
View File

@@ -0,0 +1,15 @@
FROM golang:1.11-alpine AS build
WORKDIR /app
RUN apk add git && \
go get -u -v gitlab.com/pztrn/fastpastebin/cmd/fastpastebin
FROM alpine:3.10
LABEL maintainer "Stanislav N. <pztrn@pztrn.name>"
COPY --from=build /go/bin/fastpastebin /app/fastpastebin
COPY fastpastebin.docker.yaml /app/fastpastebin.yaml
EXPOSE 25544
ENTRYPOINT [ "/app/fastpastebin", "-config", "/app/fastpastebin.yaml" ]