country-geo-locations/Dockerfile
Renovate Bot c46c917da7
All checks were successful
ci/woodpecker/push/vulncheck Pipeline was successful
ci/woodpecker/push/gofmt 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.2
2024-10-02 00:22:01 +00:00

25 lines
508 B
Docker

FROM golang:1.23.2-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 make build
# -- -- -- -- -- --
# 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/country-geo-locations /app
ENTRYPOINT ["/app/country-geo-locations"]