# Base image for Go FROM golang:1.24.1-alpine # Set the working directory WORKDIR /app # Copy the Go source code COPY . . # Install dependencies RUN go mod tidy # Build the Go application RUN go build -o acme-server main.go # Expose the ACME server port EXPOSE 8080 # Start the application CMD ["./acme-server"]