diff --git a/Dockerfile b/Dockerfile index 7465672..2050206 100644 --- a/Dockerfile +++ b/Dockerfile @@ -13,7 +13,6 @@ FROM node:${NODE_VERSION}-alpine # Use production node environment by default. ENV NODE_ENV production - WORKDIR /usr/src/app # 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 \ --mount=type=bind,source=package-lock.json,target=package-lock.json \ --mount=type=cache,target=/root/.npm \ - npm ci --omit=dev + npm ci # Run the application as a non-root user. USER node