fastpastebin/Dockerfile

18 lines
439 B
Docker
Raw Normal View History

2019-10-12 14:26:46 +05:00
FROM golang:1.13.1-alpine AS build
2019-10-13 13:55:38 +05:00
WORKDIR /fastpastebin
COPY . .
2019-10-13 13:55:38 +05:00
WORKDIR /fastpastebin/cmd/fastpastebin
2019-10-13 13:55:38 +05:00
RUN GOFLAGS="-mod=vendor" go build
FROM alpine:3.10
LABEL maintainer "Stanislav N. <pztrn@pztrn.name>"
2019-10-13 13:55:38 +05:00
COPY --from=build /fastpastebin/cmd/fastpastebin/fastpastebin /app/fastpastebin
COPY docker/fastpastebin.docker.yaml /app/fastpastebin.yaml
EXPOSE 25544
ENTRYPOINT [ "/app/fastpastebin", "-config", "/app/fastpastebin.yaml" ]