2022-12-26 21:05:04 +00:00
|
|
|
ARG NODE_VERSION="18.12.1"
|
|
|
|
ARG ALPINE_VERSION="3.16"
|
2022-06-03 20:42:23 +00:00
|
|
|
|
2022-12-26 21:05:04 +00:00
|
|
|
FROM node:${NODE_VERSION}-buster-slim
|
2022-06-03 20:42:23 +00:00
|
|
|
|
2022-12-26 21:05:04 +00:00
|
|
|
RUN apt update
|
|
|
|
RUN apt install -y openssl
|
2022-06-03 20:42:23 +00:00
|
|
|
|
2023-02-17 17:39:18 +00:00
|
|
|
RUN npm install pnpm -g
|
2022-12-26 21:05:04 +00:00
|
|
|
RUN npm install node-gyp -g
|
2022-06-03 20:42:23 +00:00
|
|
|
|
2023-02-17 17:39:18 +00:00
|
|
|
WORKDIR /app
|
2022-12-26 21:05:04 +00:00
|
|
|
|
2023-02-17 17:39:18 +00:00
|
|
|
COPY ./packages/dashboard/pnpm-lock.yaml ./
|
|
|
|
RUN pnpm fetch
|
|
|
|
|
|
|
|
COPY ./packages/dashboard/package*.json ./
|
|
|
|
COPY ./packages/dashboard/prisma/schema.prisma ./prisma/
|
|
|
|
|
|
|
|
RUN pnpm install -r --prefer-offline
|
|
|
|
COPY ./packages/dashboard ./
|
2022-06-03 20:42:23 +00:00
|
|
|
|
2023-02-12 17:42:01 +00:00
|
|
|
CMD ["npm", "run", "dev"]
|