mirror of
https://framagit.org/JonathanMM/sutom.git
synced 2024-04-28 12:12:55 +02:00
feat(docker): provide a more efficient compilation inside docker
This commit is contained in:
parent
519214b0a4
commit
27d832c7b1
|
@ -11,7 +11,8 @@ COPY package*.json ./
|
|||
RUN npm install
|
||||
|
||||
COPY . .
|
||||
RUN ./node_modules/.bin/tsc
|
||||
|
||||
EXPOSE 4000
|
||||
|
||||
CMD ["npm", "start"]
|
||||
CMD ["npm", "run", "start:prod"]
|
||||
|
|
|
@ -17,7 +17,8 @@
|
|||
"scripts": {
|
||||
"test": "echo \"Error: no test specified\" && exit 1",
|
||||
"start": "tsc && node public/js/server.js",
|
||||
"start:dev": "tsc && node public/js/server.js & tsc-watch"
|
||||
"start:dev": "tsc && node public/js/server.js & tsc-watch",
|
||||
"start:prod": "node public/js/server.js"
|
||||
},
|
||||
"keywords": [
|
||||
"wordle",
|
||||
|
|
Loading…
Reference in a new issue