Browse Source

feat(docker): provide a more efficient compilation inside docker

merge-requests/12/head
davinkevin 3 months ago
parent
commit
27d832c7b1
No known key found for this signature in database
GPG Key ID: B323BEBBC8EE667E
  1. 3
      Dockerfile
  2. 3
      package.json

3
Dockerfile

@ -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"]

3
package.json

@ -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…
Cancel
Save