fastpastebin/docker/Dockerfile

16 lines
399 B
Docker
Raw Normal View History

2019-07-20 14:16:06 +05:00
FROM golang:1.11-alpine AS build
2019-07-08 08:41:03 +05:00
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>"
2019-07-20 14:16:06 +05:00
COPY --from=build /go/bin/fastpastebin /app/fastpastebin
COPY fastpastebin.docker.yaml /app/fastpastebin.yaml
2019-07-08 08:41:03 +05:00
EXPOSE 25544
ENTRYPOINT [ "/app/fastpastebin", "-config", "/app/fastpastebin.yaml" ]