Dockerize the app

This commit is contained in:
Timur Demin
2019-07-08 08:41:03 +05:00
parent 4f01e2f5ce
commit dbf82e213b
4 changed files with 84 additions and 0 deletions

15
Dockerfile Normal file
View File

@@ -0,0 +1,15 @@
FROM golang:1.11-alpine
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=0 /go/bin/fastpastebin /app/fastpastebin
COPY examples/fastpastebin.yaml.docker /app/fastpastebin.yaml
EXPOSE 25544
ENTRYPOINT [ "/app/fastpastebin", "-config", "/app/fastpastebin.yaml" ]