mirror of
https://github.com/darksaid98/cadence-discord-bot.git
synced 2026-12-01 14:38:48 +00:00
fix: remove caching from npm ci in Dockerfile
This commit is contained in:
1 parent
5996d17fd1
commit
5e591c739f
1 file changed
+2
-4
+2
-4
@@ -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 && \
|
||||
|
||||
Reference in new issue
Block a user