aboutsummaryrefslogtreecommitdiff
path: root/Dockerfile
diff options
context:
space:
mode:
authorMax Isom <[email protected]>2020-12-03 16:08:07 -0500
committerMax Isom <[email protected]>2020-12-03 16:08:07 -0500
commitfaa1dcd5ec8d8509294cc8a9f62607684864277e (patch)
tree696203a06682b09a460dc51126933db290f275d1 /Dockerfile
parent577c976623433695705e7c61cbd9665b94e5c0b0 (diff)
downloadmuse-faa1dcd5ec8d8509294cc8a9f62607684864277e.tar.xz
muse-faa1dcd5ec8d8509294cc8a9f62607684864277e.zip
Use yarn, remove manual type for package
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"]