aboutsummaryrefslogtreecommitdiff
path: root/Dockerfile
diff options
context:
space:
mode:
Diffstat (limited to 'Dockerfile')
-rw-r--r--Dockerfile8
1 files changed, 4 insertions, 4 deletions
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"]