country-geo-locations/Dockerfile
Tom Neuber 149f688a87
All checks were successful
continuous-integration/drone/push Build is passing
Dockerfile: update build image version to patches
2024-01-10 19:40:51 +01:00

26 lines
508 B
Docker

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