Fix incorrect command and split into several runs (#19)

* Change node version in Dockerfile and steps

* Change name of scripts in package.json
This commit is contained in:
E 2021-09-11 22:07:23 +01:00 committed by GitHub
parent 61a0713ad5
commit de6ab6277b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 5 deletions

View File

@ -1,11 +1,13 @@
FROM node:10.19.0
FROM node:16.8.0
ENV IS_DOCKER=true
ENV NODE_ENV=production
WORKDIR /app
COPY ["package.json", "package-lock.json*", "./"]
RUN npm install && npm build-tails && npm install nodemon
RUN npm install
RUN npm install nodemon
COPY . .
RUN npm run build-tailwind
CMD [ "npm", "start" ]

View File

@ -3,7 +3,7 @@
"version": "0.0.0",
"private": true,
"watch": {
"build-tail": {
"build-tailwind": {
"patterns": [
"views/"
],
@ -13,8 +13,8 @@
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"start": "npx nodemon ./bin/www -e js,pug,sass",
"watch-tail": "npm-watch",
"build-tail": "postcss src/tailwind.css -o public/stylesheets/style.css"
"watch-tailwind": "npx npm-watch",
"build-tailwind": "npx postcss src/tailwind.css -o public/stylesheets/style.css"
},
"dependencies": {
"@sendgrid/mail": "^7.4.4",