From 2eafda0c09eac3f1f416d99dc1171ba39b201f5e Mon Sep 17 00:00:00 2001 From: lllllllillllllillll <147879489+lllllllillllllillll@users.noreply.github.com> Date: Sat, 18 Nov 2023 22:17:58 -0800 Subject: [PATCH] removed run commands --- Dockerfile | 17 ++++------------- 1 file changed, 4 insertions(+), 13 deletions(-) diff --git a/Dockerfile b/Dockerfile index 5011ad3..e7b0f91 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,8 +1,3 @@ -# syntax=docker/dockerfile:1 - -# Comments are provided throughout this file to help you get started. -# If you need more help, visit the Dockerfile reference guide at -# https://docs.docker.com/engine/reference/builder/ ARG NODE_VERSION=20.0.0 @@ -14,14 +9,10 @@ ENV NODE_ENV production WORKDIR /app -# Download dependencies as a separate step to take advantage of Docker's caching. -# Leverage a cache mount to /root/.npm to speed up subsequent builds. -# Leverage a bind mounts to package.json and package-lock.json to avoid having to copy them into -# into this layer. -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 +# 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 # Run the application as a non-root user. USER root