Dockerfile 164 B

12345678910111213
  1. FROM golang:1.19-alpine AS builder
  2. WORKDIR /app
  3. COPY . .
  4. RUN go mod init example
  5. RUN go mod tidy
  6. RUN go build -o webchat .
  7. ENTRYPOINT ["./webchat"]
  8. EXPOSE 8080