feat: update with pnpm
This commit is contained in:
parent
6747a1011d
commit
41cd503510
16
Dockerfile
16
Dockerfile
|
|
@ -7,18 +7,22 @@ RUN mkdir -p /usr/src/app
|
||||||
WORKDIR /usr/src/app
|
WORKDIR /usr/src/app
|
||||||
|
|
||||||
# Installing dependencies
|
# Installing dependencies
|
||||||
COPY package*.json /usr/src/app/
|
COPY package.json pnpm-lock.yaml ./
|
||||||
|
|
||||||
|
# Install dependencies
|
||||||
|
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 . /usr/src/app
|
COPY . .
|
||||||
|
|
||||||
# Building app
|
# Building app
|
||||||
RUN npm run build
|
RUN pnpm run build
|
||||||
|
|
||||||
EXPOSE 4000
|
EXPOSE 4000
|
||||||
|
|
||||||
# Running the app
|
# Running the app
|
||||||
CMD "npm" "run" "start"
|
CMD ["pnpm", "run", "start"]
|
||||||
|
|
|
||||||
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue