Skip to content

Commit

Permalink
fix: Dockerfile for pnpm
Browse files Browse the repository at this point in the history
  • Loading branch information
AnthonyLzq committed Jul 20, 2023
1 parent 62b0fbb commit aebf834
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions example/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
FROM node:18-alpine

RUN corepack enable

WORKDIR /app

COPY . ./
Expand Down
2 changes: 1 addition & 1 deletion lib/src/functions/docker.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ module.exports = async (projectName, manager) => {
const data = {
docker: {
content: `FROM node:18-alpine
${managerName === 'pnpm' ? '\nRUN corepack enable\n' : ''}
WORKDIR /app
COPY . ./
Expand Down

0 comments on commit aebf834

Please sign in to comment.