Reorder apk before WORKDIR commands to optimize build order
This commit is contained in:
parent
847a2185c8
commit
1097ac98af
@ -10,8 +10,8 @@ RUN git clone https://dev.sp-tarkov.com/SPT-AKI/Server.git . && \
|
|||||||
git lfs pull
|
git lfs pull
|
||||||
|
|
||||||
FROM node:20.11.1-alpine AS builder
|
FROM node:20.11.1-alpine AS builder
|
||||||
WORKDIR /app
|
|
||||||
RUN apk add git git-lfs
|
RUN apk add git git-lfs
|
||||||
|
WORKDIR /app
|
||||||
COPY --from=fetch /repo .
|
COPY --from=fetch /repo .
|
||||||
WORKDIR /app/project
|
WORKDIR /app/project
|
||||||
RUN npm install -g npm@10.5.1
|
RUN npm install -g npm@10.5.1
|
||||||
|
Loading…
x
Reference in New Issue
Block a user