country-geo-locations/Dockerfile
Renovate Bot a28e79413c
Some checks failed
ci/woodpecker/push/lint Pipeline was successful
ci/woodpecker/push/test Pipeline was successful
ci/woodpecker/push/build Pipeline failed
chore(deps): update golang docker tag to v1.24.2
2025-04-01 18:03:59 +00:00

25 lines
508 B
Docker

FROM golang:1.24.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"]