go-traefik-certmanager/Dockerfile
Renovate Bot 0ccfa71d38
All checks were successful
ci/woodpecker/push/lint Pipeline was successful
ci/woodpecker/push/build Pipeline was successful
ci/woodpecker/push/deploy Pipeline was successful
chore(deps): update golang docker tag to v1.23.6
2025-02-04 22:04:41 +00:00

25 lines
556 B
Docker

FROM golang:1.23.6-bookworm AS build
# Create build workspace folder
WORKDIR /workspace
ADD . /workspace
# Install updates and build tools
RUN apt-get update --yes && \
apt-get install --yes build-essential
# Build the actual binary
RUN CGO_ENABLED=0 go build -o go-traefik-certmanager main.go
# -- -- -- -- -- --
# Set up image to run the tool
FROM alpine
# Create main app folder to run from
WORKDIR /app
# Copy built binary from build image
COPY --from=build /workspace/go-traefik-certmanager /app
ENTRYPOINT ["/app/go-traefik-certmanager"]