Skip to content

Commit

Permalink
fix: revert back to npm
Browse files Browse the repository at this point in the history
  • Loading branch information
micksabox committed May 7, 2024
1 parent c6cc559 commit e6b93e9
Show file tree
Hide file tree
Showing 4 changed files with 1,140 additions and 11,230 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,10 @@ jobs:
uses: actions/checkout@v3

- name: 📦 Install Dependencies
run: pnpm install
run: npm install

- name: 🔨 Build Project
run: pnpm build
run: npm build

# needs: [lint, typecheck, vitest, playwright]
deploy:
Expand Down
14 changes: 6 additions & 8 deletions other/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,19 +14,17 @@ FROM base as deps

WORKDIR /myapp

RUN npm install -g pnpm

ADD package.json pnpm-lock.yaml .npmrc ./
RUN pnpm install --include=dev
ADD package.json package-lock.json .npmrc ./
RUN npm install --include=dev

# Setup production node_modules
FROM base as production-deps

WORKDIR /myapp

COPY --from=deps /myapp/node_modules /myapp/node_modules
ADD package.json pnpm-lock.yaml .npmrc ./
RUN pnpm prune --omit=dev
ADD package.json package-lock.json .npmrc ./
RUN npm prune --omit=dev

# Build the app
FROM base as build
Expand All @@ -43,7 +41,7 @@ COPY --from=deps /myapp/node_modules /myapp/node_modules

ADD . .

RUN pnpm build
RUN npm run build

RUN ls -la /myapp/public/build

Expand Down Expand Up @@ -84,4 +82,4 @@ COPY --from=build /myapp/package.json /myapp/package.json

ADD . .

CMD ["pnpm", "start"]
CMD ["npm", "run", "start"]
Loading

0 comments on commit e6b93e9

Please sign in to comment.