File tree Expand file tree Collapse file tree 2 files changed +5
-10
lines changed
Expand file tree Collapse file tree 2 files changed +5
-10
lines changed Original file line number Diff line number Diff line change @@ -8,16 +8,13 @@ WORKDIR /app
88
99# Cache dependencies separately
1010COPY go.mod go.sum ./
11- RUN --mount=type=cache,target=/go/pkg/mod \
12- go mod download
11+ RUN go mod download
1312
1413# Copy source code
1514COPY . .
1615
17- # Build with cache mounts and cross-compilation
18- RUN --mount=type=cache,target=/go/pkg/mod \
19- --mount=type=cache,target=/root/.cache/go-build \
20- GOOS=${TARGETOS} GOARCH=${TARGETARCH} make build
16+ # Build with cross-compilation
17+ RUN GOOS=${TARGETOS} GOARCH=${TARGETARCH} make build
2118
2219FROM alpine:3.18
2320ARG API_PORT
Original file line number Diff line number Diff line change @@ -2,8 +2,7 @@ FROM node:18-alpine AS deps
22RUN apk add --no-cache libc6-compat
33WORKDIR /app
44COPY package.json yarn.lock ./
5- RUN --mount=type=cache,target=/usr/local/share/.cache/yarn \
6- yarn install --frozen-lockfile --network-timeout 600000 --production=false
5+ RUN yarn install --frozen-lockfile --network-timeout 600000 --production=false
76
87FROM node:18-alpine AS builder
98WORKDIR /app
@@ -15,8 +14,7 @@ ENV NEXT_TELEMETRY_DISABLED=1
1514ENV PORT=$NEXT_PUBLIC_PORT
1615ENV NEXT_PUBLIC_PORT=$NEXT_PUBLIC_PORT
1716
18- RUN --mount=type=cache,target=/app/.next/cache \
19- yarn build
17+ RUN yarn build
2018
2119FROM node:18-alpine AS runner
2220WORKDIR /app
You can’t perform that action at this time.
0 commit comments