dockerise server

This commit is contained in:
Jurgis Sakalauskas committed 2023-08-04 16:06:47 +03:00
1 parent 27f76a08f0
commit fe938afa3f
11 files changed
+81 -28

No files matched your search

+17
View File
@@ -0,0 +1,17 @@
FROM node:18
RUN apt-get update
RUN apt-get install ffmpeg -y
WORKDIR /srv/app
COPY ./ /srv/app
RUN npm install
RUN npm run typeorm:run-migrations
EXPOSE $PORT
# serve dev
CMD ["npm", "run", "start:dev"]
#serve prod
#CMD ["npm", "run", "start"]