mirror of
https://github.com/Maronato/go-finger.git
synced 2025-03-15 00:34:47 +00:00
fixed dockerfile
This commit is contained in:
parent
c5a35aa70f
commit
29e6ae83a6
1 changed files with 3 additions and 1 deletions
|
@ -28,13 +28,15 @@ COPY main.go ./
|
||||||
|
|
||||||
# Build it
|
# Build it
|
||||||
RUN --mount=type=cache,target=/tmp/.go-build-cache \
|
RUN --mount=type=cache,target=/tmp/.go-build-cache \
|
||||||
make backend VERSION=$VERSION
|
make build VERSION=$VERSION
|
||||||
|
|
||||||
# Now create a new image with just the binary
|
# Now create a new image with just the binary
|
||||||
FROM gcr.io/distroless/static-debian11:nonroot
|
FROM gcr.io/distroless/static-debian11:nonroot
|
||||||
|
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
|
COPY urns.yml /app/urns.yml
|
||||||
|
|
||||||
# Set our runtime environment
|
# Set our runtime environment
|
||||||
ENV ENV_DOCKER=true
|
ENV ENV_DOCKER=true
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue