2022-09-06 09:25:25 +03:00
|
|
|
FROM node:18
|
|
|
|
ENV DEBIAN_FRONTEND=noninteractive
|
2022-06-03 23:42:23 +03:00
|
|
|
|
|
|
|
WORKDIR /
|
|
|
|
|
2022-06-30 16:52:55 +03:00
|
|
|
# Install dependencies
|
2022-09-06 09:25:25 +03:00
|
|
|
RUN apt update && apt install -y bash git g++ make
|
|
|
|
# Install docker-compose
|
|
|
|
RUN apt install -y docker-compose
|
2022-09-01 14:33:45 +03:00
|
|
|
|
2022-06-11 14:02:39 +03:00
|
|
|
RUN npm install node-gyp -g
|
2022-06-03 23:42:23 +03:00
|
|
|
|
|
|
|
WORKDIR /api
|
2022-06-22 22:28:48 +03:00
|
|
|
COPY ./packages/system-api/package*.json /api/
|
2022-08-25 11:23:35 +03:00
|
|
|
RUN npm install --omit=dev
|
2022-06-03 23:42:23 +03:00
|
|
|
|
|
|
|
WORKDIR /dashboard
|
2022-06-22 22:28:48 +03:00
|
|
|
COPY ./packages/dashboard/package*.json /dashboard/
|
2022-08-25 11:23:35 +03:00
|
|
|
RUN npm install --omit=dev
|
2022-06-03 23:42:23 +03:00
|
|
|
|
2022-08-25 11:23:35 +03:00
|
|
|
WORKDIR /api
|
2022-06-22 22:28:48 +03:00
|
|
|
COPY ./packages/system-api /api
|
2022-08-25 11:23:35 +03:00
|
|
|
RUN npm i -g @swc/cli @swc/core && npm run build && npm uninstall -g @swc/cli @swc/core
|
|
|
|
# ---
|
|
|
|
WORKDIR /dashboard
|
2022-06-22 22:28:48 +03:00
|
|
|
COPY ./packages/dashboard /dashboard
|
2022-08-25 11:23:35 +03:00
|
|
|
RUN npm i typescript @types/node && npm run build && npm uninstall typescript @types/node
|
2022-06-03 23:42:23 +03:00
|
|
|
|
|
|
|
WORKDIR /
|