mirror of
https://gitlab.com/MrFry/mrfrys-node-server
synced 2025-04-01 20:24:18 +02:00
Added docker stuff
This commit is contained in:
parent
cc19b5424b
commit
6ea1ec3958
4 changed files with 60 additions and 10 deletions
15
Dockerfile
Normal file
15
Dockerfile
Normal file
|
@ -0,0 +1,15 @@
|
|||
FROM node:16
|
||||
|
||||
WORKDIR /server
|
||||
COPY package.json ./
|
||||
COPY package-lock.json ./
|
||||
|
||||
RUN npm i
|
||||
COPY . .
|
||||
RUN npm run export
|
||||
|
||||
CMD [ "bash", "scripts/make.sh" ]
|
||||
CMD [ "npm", "run", "start" ]
|
||||
|
||||
EXPOSE 80
|
||||
EXPOSE 8080
|
Loading…
Add table
Add a link
Reference in a new issue