gpaste/Dockerfile

14 lines
359 B
Docker
Raw Normal View History

2022-01-15 18:07:33 +00:00
FROM golang:alpine AS builder
WORKDIR /src
COPY go.mod .
COPY go.sum .
RUN go mod download
COPY . .
RUN go build -o gpaste ./cmd/client/client.go
RUN go build -o gpaste-server ./cmd/server/server.go
FROM alpine:latest
COPY --from=builder /src/gpaste /bin/gpaste
COPY --from=builder /src/gpaste-server /bin/gpaste-server
2022-01-21 17:03:49 +00:00
EXPOSE 8080
2022-01-15 18:07:33 +00:00
CMD ["/bin/gpaste-server"]