dockerise server

This commit is contained in:
Jurgis Sakalauskas
2023-08-04 16:06:47 +03:00
parent 27f76a08f0
commit fe938afa3f
11 changed files with 81 additions and 28 deletions
+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"]