feat: update change pnpm to npm
This commit is contained in:
parent
dad8d99019
commit
fea5814222
15
Dockerfile
15
Dockerfile
|
|
@ -3,7 +3,7 @@ FROM node:23.5.0-alpine
|
||||||
ENV PORT 4000
|
ENV PORT 4000
|
||||||
|
|
||||||
# pnpm install globally
|
# pnpm install globally
|
||||||
RUN npm install -g pnpm
|
# RUN npm install -g pnpm
|
||||||
|
|
||||||
# Create app directory
|
# Create app directory
|
||||||
RUN mkdir -p /usr/src/app
|
RUN mkdir -p /usr/src/app
|
||||||
|
|
@ -16,20 +16,21 @@ COPY package.json pnpm-lock.yaml ./
|
||||||
COPY vendor/ckeditor5 ./vendor/ckeditor5
|
COPY vendor/ckeditor5 ./vendor/ckeditor5
|
||||||
|
|
||||||
# Install dependencies
|
# Install dependencies
|
||||||
RUN pnpm install --frozen-lockfile
|
# RUN pnpm install --frozen-lockfile
|
||||||
|
|
||||||
# RUN npm install --force
|
RUN npm install --force
|
||||||
# RUN npm install -g npm@latest
|
RUN npm install -g npm@latest
|
||||||
# RUN npm install
|
RUN npm install
|
||||||
|
|
||||||
# Copying source files
|
# Copying source files
|
||||||
COPY . .
|
COPY . .
|
||||||
|
|
||||||
# Building app
|
# Building app
|
||||||
RUN rm -rf .next
|
RUN rm -rf .next
|
||||||
RUN pnpm run build
|
# RUN pnpm run build
|
||||||
|
RUN npm run build
|
||||||
|
|
||||||
EXPOSE 4000
|
EXPOSE 4000
|
||||||
|
|
||||||
# Running the app
|
# Running the app
|
||||||
CMD ["pnpm", "run", "start"]
|
CMD ["npm", "run", "start"]
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue