Skip to content

Commit

Permalink
Remove package-lock.json file from the container
Browse files Browse the repository at this point in the history
  • Loading branch information
kgapos committed Oct 25, 2023
1 parent 30b7d46 commit ae53f7a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
8 changes: 4 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
FROM --platform=linux/amd64 node:gallium-alpine3.18 AS builder-amd64

WORKDIR /app
# Copy the package.json and package-lock.json to the container
COPY ./src/package*.json ./
# Copy the package.json
COPY ./src/package.json .
RUN npm install
# Copy the rest of the application code to the container
COPY ./src .
Expand All @@ -12,8 +12,8 @@ COPY ./src .
FROM --platform=linux/arm64/v8 node:gallium-alpine3.18 AS builder-arm64

WORKDIR /app
# Copy the package.json and package-lock.json to the container
COPY ./src/package*.json ./
# Copy the package.json
COPY ./src/package.json .
RUN npm install
# Copy the rest of the application code to the container
COPY ./src .
Expand Down
3 changes: 2 additions & 1 deletion src/.dockerignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
node_modules
node_modules
package-lock.json

0 comments on commit ae53f7a

Please sign in to comment.