All checks were successful
Create and publish a Docker image 🚀 / build-and-push-image (push) Successful in 2m20s
11 lines
178 B
Docker
11 lines
178 B
Docker
FROM golang:alpine AS builder
|
|
WORKDIR /app
|
|
COPY . .
|
|
RUN go build -o main .
|
|
|
|
FROM alpine:latest
|
|
WORKDIR /app
|
|
COPY --from=builder /app/main /app/main
|
|
EXPOSE 8080
|
|
CMD ["/app/main"]
|