forked from phc/orario
Updated dockerfile
parent
6d34b80fb2
commit
21abcba473
@ -1,15 +1,8 @@
|
||||
FROM node:18
|
||||
|
||||
RUN npm install -g pnpm
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
# pnpm fetch richiede solo il file lock
|
||||
COPY pnpm-lock.yaml ./
|
||||
|
||||
RUN pnpm fetch --prod
|
||||
|
||||
COPY . ./
|
||||
RUN pnpm install -r --offline --prod
|
||||
RUN npm install
|
||||
|
||||
CMD ["pnpm", "run", "build"]
|
||||
CMD ["npm", "run", "build"]
|
||||
|
Loading…
Reference in New Issue