Move to Go modules (#10)

This commit is contained in:
2019-10-13 08:55:38 +00:00
committed by Gitea
parent 2159aadfcb
commit 6207229e9b
478 changed files with 148676 additions and 20886 deletions

View File

@@ -1,16 +1,16 @@
FROM golang:1.13.1-alpine AS build
WORKDIR /go/src/go.dev.pztrn.name/fastpastebin
WORKDIR /fastpastebin
COPY . .
WORKDIR /go/src/go.dev.pztrn.name/fastpastebin/cmd/fastpastebin
WORKDIR /fastpastebin/cmd/fastpastebin
RUN go build
RUN GOFLAGS="-mod=vendor" go build
FROM alpine:3.10
LABEL maintainer "Stanislav N. <pztrn@pztrn.name>"
COPY --from=build /go/src/go.dev.pztrn.name/fastpastebin/cmd/fastpastebin/fastpastebin /app/fastpastebin
COPY --from=build /fastpastebin/cmd/fastpastebin/fastpastebin /app/fastpastebin
COPY docker/fastpastebin.docker.yaml /app/fastpastebin.yaml
EXPOSE 25544