test
This commit is contained in:
20
Dockerfile
Normal file
20
Dockerfile
Normal file
@@ -0,0 +1,20 @@
|
||||
# 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"]
|
||||
Reference in New Issue
Block a user