fastpastebin/Dockerfile

18 lines
513 B
Docker
Raw Permalink Normal View History

FROM code.pztrn.name/containers/mirror/golang:1.19.0-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
RUN CGO_ENABLED=0 go build -tags netgo
FROM code.pztrn.name/containers/mirror/alpine:3.16.1
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" ]