mirror of
https://github.com/Damillora/Rinze.git
synced 2024-12-22 23:53:45 +00:00
16 lines
311 B
Docker
16 lines
311 B
Docker
FROM node:16-alpine
|
|
# install dependencies
|
|
WORKDIR /app
|
|
RUN npm install -g pnpm
|
|
COPY . .
|
|
RUN pnpm install
|
|
RUN pnpm build
|
|
FROM node:16-alpine
|
|
WORKDIR /app
|
|
COPY --from=0 /app/build /app
|
|
COPY --from=0 /app/package.json /app
|
|
COPY --from=0 /app/node_modules /app/node_modules
|
|
|
|
EXPOSE 3000
|
|
CMD ["node","./index.js"]
|