diff --git a/Dockerfile b/Dockerfile index f56c48fb..c0c5e18a 100644 --- a/Dockerfile +++ b/Dockerfile @@ -7,11 +7,10 @@ ENV NODE_ENV=production # set working directory. WORKDIR /kutt -# download dependencies while using Docker's caching -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 +# download dependencies +COPY package.json package-lock.json ./ + +RUN npm ci RUN mkdir -p /var/lib/kutt