excalidraw-complete.Dockerfile 349 B

1234567891011121314
  1. FROM golang:alpine as builder
  2. RUN apk update && apk add --no-cache git
  3. WORKDIR /app
  4. COPY go.mod ./
  5. RUN GOPROXY=direct go mod download
  6. COPY . .
  7. RUN GOPROXY=direct CGO_ENABLED=0 GOOS=linux go build -a -installsuffix cgo -o main .
  8. FROM alpine
  9. WORKDIR /root/
  10. COPY --from=builder /app/main .
  11. # COPY --from=builder /app/.env .
  12. EXPOSE 3002
  13. CMD ["./main"]