forked from phc/orario
Added docker build image
parent
c42ccc58dc
commit
d54ca0bf20
@ -0,0 +1,15 @@
|
|||||||
|
FROM node:latest-alpine
|
||||||
|
|
||||||
|
RUN curl -f https://get.pnpm.io/v6.16.js | node - add --global pnpm
|
||||||
|
|
||||||
|
WORKDIR /app
|
||||||
|
|
||||||
|
# pnpm fetch richiede solo il file lock
|
||||||
|
COPY pnpm-lock.yaml ./
|
||||||
|
|
||||||
|
RUN pnpm fetch --prod
|
||||||
|
|
||||||
|
ADD . ./
|
||||||
|
RUN pnpm install -r --offline --prod
|
||||||
|
|
||||||
|
CMD pnpm run build
|
Loading…
Reference in New Issue