Fix incorrect command and split into several runs

This commit is contained in:
E
2021-09-11 21:49:15 +01:00
parent 61a0713ad5
commit 32eab7d8f6

View File

@@ -4,8 +4,10 @@ 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
COPY ["package.json", "package-lock.json*", "postcss.config.js", "tailwind.config.js", "./"]
RUN npm install
RUN npm build-tail
RUN npm install nodemon
COPY . .
CMD [ "npm", "start" ]