- FROM alpine:3 AS certs 
 
- RUN apk add --no-cache ca-certificates
 
- FROM scratch
 
- # Copy the binary to the production image from the builder stage.
 
- # RUN set -x && apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y \
 
- #         ca-certificates && apt-get install libc6 && rm -rf /var/lib/apt/lists/*
 
- COPY --from=certs /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/
 
- COPY ./main /server
 
- # Set workdir.
 
- # RUN chmod +x /app/main
 
- # Run the web service on container startup.
 
- CMD ["./server"]
 
 
  |