country-geo-locations/Dockerfile
Renovate Bot d84871fc87
All checks were successful
continuous-integration/drone/push Build is passing
Update golang Docker tag to v1.22.5
2024-07-03 00:09:15 +00:00

25 lines
508 B
Docker

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