2021-06-14 22:59:21 +05:00
|
|
|
FROM golang:1.16.5-alpine AS build
|
2019-09-25 18:45:50 +05:00
|
|
|
|
2019-10-13 13:55:38 +05:00
|
|
|
WORKDIR /fastpastebin
|
2019-09-25 18:45:50 +05:00
|
|
|
COPY . .
|
|
|
|
|
2019-10-13 13:55:38 +05:00
|
|
|
WORKDIR /fastpastebin/cmd/fastpastebin
|
2019-09-25 18:45:50 +05:00
|
|
|
|
2021-06-14 22:59:21 +05:00
|
|
|
RUN CGO_ENABLED=0 go build -tags netgo
|
2019-09-25 18:45:50 +05:00
|
|
|
|
2021-06-14 22:59:21 +05:00
|
|
|
FROM alpine:3.13
|
2019-09-25 18:45:50 +05:00
|
|
|
LABEL maintainer "Stanislav N. <pztrn@pztrn.name>"
|
|
|
|
|
2019-10-13 13:55:38 +05:00
|
|
|
COPY --from=build /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" ]
|