Merge pull request #152 from luth31/master

Move TS compilation to docker image build
This commit is contained in:
Flam3rboy
2021-05-29 21:37:07 +02:00
committed by GitHub

View File

@@ -1,8 +1,8 @@
FROM node:lts-alpine
WORKDIR /usr/src/fosscord-api
COPY package.json .
COPY package.json .
RUN npm install
RUN npx patch-package
COPY . .
EXPOSE 3001
CMD ["npm", "start"]
RUN npm run build
CMD ["node", "dist/start.js"]