mirror of
https://github.com/Ninluc/Dat_Boi.git
synced 2025-08-09 23:26:13 +02:00
Fix Docker
This commit is contained in:
@ -13,7 +13,6 @@ FROM node:${NODE_VERSION}-alpine
|
|||||||
# Use production node environment by default.
|
# Use production node environment by default.
|
||||||
ENV NODE_ENV production
|
ENV NODE_ENV production
|
||||||
|
|
||||||
|
|
||||||
WORKDIR /usr/src/app
|
WORKDIR /usr/src/app
|
||||||
|
|
||||||
# Download dependencies as a separate step to take advantage of Docker's caching.
|
# Download dependencies as a separate step to take advantage of Docker's caching.
|
||||||
@ -23,7 +22,7 @@ WORKDIR /usr/src/app
|
|||||||
RUN --mount=type=bind,source=package.json,target=package.json \
|
RUN --mount=type=bind,source=package.json,target=package.json \
|
||||||
--mount=type=bind,source=package-lock.json,target=package-lock.json \
|
--mount=type=bind,source=package-lock.json,target=package-lock.json \
|
||||||
--mount=type=cache,target=/root/.npm \
|
--mount=type=cache,target=/root/.npm \
|
||||||
npm ci --omit=dev
|
npm ci
|
||||||
|
|
||||||
# Run the application as a non-root user.
|
# Run the application as a non-root user.
|
||||||
USER node
|
USER node
|
||||||
|
Reference in New Issue
Block a user