runtipi/Dockerfile

30 lines
706 B
Text
Raw Normal View History

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