fix: make the CDN build correctly

This commit is contained in:
Hayden Young
2021-10-17 11:55:54 +00:00
committed by GitHub
parent 685cfaf06a
commit 79aae987fd
8 changed files with 354 additions and 22137 deletions
+14 -7
View File
@@ -1,7 +1,14 @@
FROM node:lts-alpine
WORKDIR /usr/src/fosscord-cdn
COPY package.json .
RUN npm install
COPY . .
EXPOSE 3003
CMD ["node", "dist/"]
FROM node:lts-alpine AS builder
WORKDIR /usr/src/util
COPY util .
RUN npm install && npm run build
WORKDIR /usr/src/cdn
COPY cdn/ .
RUN npm install && npm run build
EXPOSE 3001
CMD ["node", "dist/start.js"]