Capstone/service/Dockerfile

20 lines
231 B
Docker
Raw Normal View History

2023-10-23 22:01:09 -04:00
from golang:1.21-alpine as builder
WORKDIR /build
COPY go.mod go.sum ./
RUN go mod download
COPY . .
RUN go build -o main
FROM alpine:latest
COPY --from=builder /build/main /bin/main
EXPOSE "8080"
ENTRYPOINT ["/bin/main"]