woodpecker-config-service/Dockerfile
SebClem 81019dc330
All checks were successful
ci/woodpecker/tag/woodpecker Pipeline was successful
Remove signature check
2023-07-07 15:06:57 +02:00

27 lines
689 B
Docker

# syntax=docker/dockerfile:1
FROM golang:1.20.5-alpine
# Set destination for COPY
WORKDIR /app
# Download Go modules
COPY go.mod go.sum ./
RUN go mod download
# Copy the source code. Note the slash at the end, as explained in
# https://docs.docker.com/engine/reference/builder/#copy
COPY *.go ./
# Build
RUN CGO_ENABLED=0 GOOS=linux go build -o /woodpecker-config-service
# Optional:
# To bind to a TCP port, runtime parameters must be supplied to the docker command.
# But we can document in the Dockerfile what ports
# the application is going to listen on by default.
# https://docs.docker.com/engine/reference/builder/#expose
EXPOSE 8000
# Run
CMD ["/woodpecker-config-service"]