mirror of
https://framagit.org/JonathanMM/sutom.git
synced 2024-06-10 09:52:13 +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
|
RUN npm install
|
||||||
|
|
||||||
COPY . .
|
COPY . .
|
||||||
|
RUN ./node_modules/.bin/tsc
|
||||||
|
|
||||||
EXPOSE 4000
|
EXPOSE 4000
|
||||||
|
|
||||||
CMD ["npm", "start"]
|
CMD ["npm", "run", "start:prod"]
|
||||||
|
|
|
@ -17,7 +17,8 @@
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"test": "echo \"Error: no test specified\" && exit 1",
|
"test": "echo \"Error: no test specified\" && exit 1",
|
||||||
"start": "tsc && node public/js/server.js",
|
"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": [
|
"keywords": [
|
||||||
"wordle",
|
"wordle",
|
||||||
|
|
Loading…
Reference in a new issue