Skip to content

Commit

Permalink
change npm install command on docker to see if fixes the build
Browse files Browse the repository at this point in the history
  • Loading branch information
poeti8 committed Jan 9, 2025
1 parent 0ba5595 commit 2b8dbad
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 2b8dbad

Please sign in to comment.