From: Lukas Krickl Date: Mon, 8 Nov 2021 05:59:44 +0000 (+0100) Subject: Added dockerfile X-Git-Url: https://git.krickl.dev/?a=commitdiff_plain;h=a20d37815b7a7e70aa7faa4c2609099e3b03d784;p=website%2F.git Added dockerfile --- 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"]