diff options
Diffstat (limited to 'Dockerfile')
| -rw-r--r-- | Dockerfile | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -8,20 +8,20 @@ WORKDIR /usr/app COPY package* ./ # Install prod dependencies -RUN npm i --only=prod +RUN yarn install --prod # Dependencies FROM base AS dependencies # Install dev dependencies -RUN npm install +RUN yarn install # Build app FROM dependencies AS builder COPY . . -RUN npm run build +RUN yarn build # Only copy essentials FROM base AS prod @@ -30,4 +30,4 @@ COPY --from=builder /usr/app/dist dist ENV DATA_DIR /data -CMD ["npm", "run", "start"] +CMD ["yarn", "start"] |
