fix: remove caching from npm ci in Dockerfile

This commit is contained in:
Marius Begby committed 2023-09-25 19:44:43 +02:00
1 parent 5996d17fd1
commit 5e591c739f
1 file changed
+2 -4
+2 -4
View File
@@ -18,10 +18,8 @@ COPY tsconfig.json ./
COPY src/ ./src/
COPY config/ ./config/
# Install dependencies from package-lock.json and omit dev dependencies
# Leverage a cache mount to /root/.npm to speed up subsequent builds.
RUN --mount=type=cache,target=/root/.npm \
npm ci
# Install dependencies from package-lock.json
RUN npm ci
# Transpile TypeScript to JavaScript, remove dev dependencies, and install production dependencies
RUN npm run build && \