Rework complete project
This commit is contained in:
parent
868965a072
commit
aebf7447c6
18 changed files with 2237 additions and 1980 deletions
25
Dockerfile
Normal file
25
Dockerfile
Normal file
|
@ -0,0 +1,25 @@
|
|||
FROM golang:1.21-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"]
|
Loading…
Add table
Add a link
Reference in a new issue