Files
goacme/Dockerfile
2025-04-29 09:42:42 +02:00

21 lines
318 B
Docker

# 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"]