Dockerfile 375 B

123456789101112131415161718
  1. # Dockerfile
  2. #FROM golang:1.17.1 #####Enable when you want to test with bash
  3. FROM golang:1.17.1-alpine3.14
  4. WORKDIR /app/source
  5. COPY . .
  6. RUN apk update && apk add git && apk --no-cache --update add build-base
  7. #RUN apt-get update && apt-get install git #####Enable when you want to test with bash
  8. RUN go build -o metarare-app main.go
  9. EXPOSE 9000
  10. CMD ["./metarare-app"]