From 33344ea37bdbeb682776792244d26112ec47bd66 Mon Sep 17 00:00:00 2001 From: Stanislaw <62724833+BoberITman@users.noreply.github.com> Date: Mon, 20 Jun 2022 23:02:48 +0200 Subject: [PATCH] last hotfix --- .github/workflows/deploy.yaml | 2 +- Dockerfile | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/deploy.yaml b/.github/workflows/deploy.yaml index a1be222..6efddfc 100644 --- a/.github/workflows/deploy.yaml +++ b/.github/workflows/deploy.yaml @@ -18,4 +18,4 @@ jobs: run: | docker stop ${{ github.event.repository.name }} || true docker rm ${{ github.event.repository.name }} || true - docker run -d ${{ github.repository }} -p 3000:3000 + docker run -p 3000:3000 -d ${{ github.repository }} diff --git a/Dockerfile b/Dockerfile index b3d2317..485e9f7 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,6 +1,6 @@ FROM node:16.10.0 WORKDIR /app COPY ./ ./ -CMD ["npm","install"] +RUN npm install CMD ["npx","next","build"] CMD ["npx","next","start"]