Skip to content

Commit

Permalink
🩹 Correct issue with builds not updating node modules volume (#39)
Browse files Browse the repository at this point in the history
  • Loading branch information
nefrob authored Oct 6, 2024
1 parent 204d2d0 commit 441c010
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ RUN apk update && \

WORKDIR /code
COPY package.json yarn.lock ./
RUN --mount=type=cache,target=/root/.yarn yarn
RUN --mount=type=cache,target=/root/.yarn yarn install --frozen-lockfile

COPY . .

Expand Down
5 changes: 1 addition & 4 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,4 @@ services:
- NODE_ENV=developement
volumes:
- ./:/code
- node_modules:/code/node_modules

volumes:
node_modules:
- /code/node_modules

0 comments on commit 441c010

Please sign in to comment.