github.com/miguelangel-nubla/oauth2commander@v0.3.7/Dockerfile (about)

     1  FROM golang:latest AS builder
     2  
     3  WORKDIR /app
     4  
     5  COPY go.mod go.sum ./
     6  
     7  RUN go mod download 
     8  
     9  COPY . .
    10  
    11  RUN CGO_ENABLED=0 GOOS=linux go build -o oauth2commander .
    12  
    13  FROM ubuntu:latest
    14  
    15  RUN apt-get update && apt-get install -y ca-certificates && rm -rf /var/lib/apt/lists/*
    16  
    17  COPY --from=builder /app/oauth2commander /app/oauth2commander
    18  COPY --from=builder /app/config.json /app/config.json
    19  
    20  EXPOSE 8080
    21  
    22  CMD ["/app/oauth2commander"]