Torjus Håkestad
6822cd6bfe
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
14 lines
359 B
Docker
14 lines
359 B
Docker
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
|
|
EXPOSE 8080
|
|
CMD ["/bin/gpaste-server"] |