From a20d37815b7a7e70aa7faa4c2609099e3b03d784 Mon Sep 17 00:00:00 2001 From: Lukas Krickl Date: Mon, 8 Nov 2021 06:59:44 +0100 Subject: [PATCH] Added dockerfile --- Dockerfile | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index 37cca80..ca54b51 100644 --- a/Dockerfile +++ b/Dockerfile @@ -8,12 +8,13 @@ RUN apt update -y && apt upgrade -y RUN apt install -y git COPY . /usr/src/website -RUN npm install -RUN npm run build +RUN npm install --global yarn +RUN yarn install +RUN yarn run build EXPOSE 3000 ENV NUXT_HOST=0.0.0.0 ENV NUXT_PORT=3000 -CMD ["npm", "start"] +CMD ["yarn", "run", "start"] -- 2.30.2