1
0
mirror of https://github.com/spacebarchat/server.git synced 2024-09-22 02:31:36 +02:00

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
commit c6320db551
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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"]