From faa1dcd5ec8d8509294cc8a9f62607684864277e Mon Sep 17 00:00:00 2001 From: Max Isom Date: Thu, 3 Dec 2020 16:08:07 -0500 Subject: Use yarn, remove manual type for package --- Dockerfile | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'Dockerfile') diff --git a/Dockerfile b/Dockerfile index a3a918d..85e2f3d 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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"] -- cgit v1.2.3