Skip to content

Commit

Permalink
fix: add node_modules on docker image (#68)
Browse files Browse the repository at this point in the history
* fix: add node_modules on docker image

* fix: docker build

* fix: docker build

* fix: docker build

* fix: docker file

* fix: docker build

* fix: docker build
  • Loading branch information
emmanuelm41 authored Jun 6, 2024
1 parent ed44f08 commit 0b27767
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .yarnrc.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
nodeLinker: node-modules

yarnPath: .yarn/releases/yarn-4.1.0.cjs
yarnPath: ./.yarn/releases/yarn-4.1.0.cjs
3 changes: 2 additions & 1 deletion earthly-dockerfile/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@ WORKDIR /app
RUN corepack enable

# Copy package.json, yarn.lock
COPY package.json yarn.lock ./
COPY package.json yarn.lock .yarnrc.yml ./
COPY .yarn ./.yarn

# Install production dependencies only
RUN yarn workspaces focus --production
Expand Down

0 comments on commit 0b27767

Please sign in to comment.