2019-10-12 14:26:46 +05:00
|
|
|
FROM golang:1.13.1-alpine AS build
|
2019-09-25 18:45:50 +05:00
|
|
|
|
2019-10-12 14:26:46 +05:00
|
|
|
WORKDIR /go/src/go.dev.pztrn.name/fastpastebin
|
2019-09-25 18:45:50 +05:00
|
|
|
COPY . .
|
|
|
|
|
2019-10-12 14:26:46 +05:00
|
|
|
WORKDIR /go/src/go.dev.pztrn.name/fastpastebin/cmd/fastpastebin
|
2019-09-25 18:45:50 +05:00
|
|
|
|
|
|
|
RUN go build
|
|
|
|
|
|
|
|
FROM alpine:3.10
|
|
|
|
LABEL maintainer "Stanislav N. <pztrn@pztrn.name>"
|
|
|
|
|
2019-10-12 14:26:46 +05:00
|
|
|
COPY --from=build /go/src/go.dev.pztrn.name/fastpastebin/cmd/fastpastebin/fastpastebin /app/fastpastebin
|
2019-09-25 18:45:50 +05:00
|
|
|
COPY docker/fastpastebin.docker.yaml /app/fastpastebin.yaml
|
|
|
|
|
|
|
|
EXPOSE 25544
|
|
|
|
ENTRYPOINT [ "/app/fastpastebin", "-config", "/app/fastpastebin.yaml" ]
|