Dockerfile 383 B

123456789101112131415
  1. FROM debian:buster-slim
  2. # Copy the binary to the production image from the builder stage.
  3. RUN set -x && apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y \
  4. ca-certificates && \
  5. rm -rf /var/lib/apt/lists/*
  6. WORKDIR /app
  7. COPY ./main /app/main
  8. # Set workdir.
  9. RUN chmod +x /app/main
  10. # Run the web service on container startup.
  11. CMD ["./main"]