Stanislav N. aka pztrn
02e933efed
All checks were successful
continuous-integration/drone/push Build is passing
18 lines
513 B
Docker
18 lines
513 B
Docker
FROM code.pztrn.name/containers/mirror/golang:1.18.3-alpine AS build
|
|
|
|
WORKDIR /fastpastebin
|
|
COPY . .
|
|
|
|
WORKDIR /fastpastebin/cmd/fastpastebin
|
|
|
|
RUN CGO_ENABLED=0 go build -tags netgo
|
|
|
|
FROM code.pztrn.name/containers/mirror/alpine:3.16.0
|
|
LABEL maintainer "Stanislav N. <pztrn@pztrn.name>"
|
|
|
|
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" ]
|