mirror of
https://github.com/darksaid98/cadence-discord-bot.git
synced 2026-12-04 14:38:49 +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 src/ ./src/
|
||||||
COPY config/ ./config/
|
COPY config/ ./config/
|
||||||
|
|
||||||
# Install dependencies from package-lock.json and omit dev dependencies
|
# Install dependencies from package-lock.json
|
||||||
# Leverage a cache mount to /root/.npm to speed up subsequent builds.
|
RUN npm ci
|
||||||
RUN --mount=type=cache,target=/root/.npm \
|
|
||||||
npm ci
|
|
||||||
|
|
||||||
# Transpile TypeScript to JavaScript, remove dev dependencies, and install production dependencies
|
# Transpile TypeScript to JavaScript, remove dev dependencies, and install production dependencies
|
||||||
RUN npm run build && \
|
RUN npm run build && \
|
||||||
|
|||||||
Reference in new issue
Block a user