remove cache refs
Some checks failed
Check / checks (push) Has been cancelled
Release / buildpush (release) Failing after 41m49s

This commit is contained in:
Gustavo Maronato 2024-03-26 19:19:29 -04:00
parent 144216e95f
commit c5b6cad55b
Signed by: maronato
SSH Key Fingerprint: SHA256:2Gw7kwMz/As+2UkR1qQ/qYYhn+WNh3FGv6ozhoRrLcs

View File

@ -10,7 +10,6 @@ WORKDIR /go/src/app
# Set our build environment
ENV GOPATH=/go
ENV PATH=$GOPATH/bin:/usr/local/go/bin:$PATH
ENV GOCACHE=/tmp/.go-build-cache
# This variable communicates to the service that it's running inside
# a docker container.
ENV ENV_DOCKER=true
@ -18,16 +17,13 @@ ENV ENV_DOCKER=true
# Copy dockerignore files
COPY .dockerignore ./
# Install go deps using the cache
# Install go deps
COPY go.mod go.sum ./
RUN --mount=type=cache,target=/tmp/.go-build-cache \
go mod download -x
RUN go mod download -x
# Install node deps
COPY frontend/package.json frontend/package-lock.json frontend/
RUN npm config set cache /tmp/.npm-cache --global
RUN --mount=type=cache,target=/tmp/.npm-cache \
npm ci --prefix frontend
RUN npm ci --prefix frontend
COPY Makefile ./
@ -42,8 +38,7 @@ COPY internal internal
COPY docs docs
# Build the backend
RUN --mount=type=cache,target=/tmp/.go-build-cache \
make backend VERSION=$VERSION
RUN make backend VERSION=$VERSION
# Now create a new image with just the binary
FROM gcr.io/distroless/static-debian11:nonroot