diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 71eb4d4..a58f894 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -52,8 +52,7 @@ jobs: # TODO update APT and install Docker from the script so we don't need to do it manually on the server script: | docker login ghcr.io -u $GITHUB_USERNAME -p $GITHUB_TOKEN - # docker pull ghcr.io/rahul-soshte/next-docker-github-actions/next_test_image:latest - # docker stop next-test-app - # docker system prune -f - -# docker run --name next-test-app -dit -p 12345:3000 ghcr.io/rahul-soshte/next-docker-github-actions/next_test_image:latest + docker pull ghcr.io/rahul-soshte/next-docker-github-actions/next_test_image:latest + docker stop next-test-app + docker system prune -f + docker run --name next-test-app -dit -p 12345:3000 ghcr.io/rahul-soshte/next-docker-github-actions/next_test_image:latest diff --git a/Dockerfile b/Dockerfile index d8c164c..11c1b7f 100644 --- a/Dockerfile +++ b/Dockerfile @@ -41,6 +41,6 @@ COPY --from=builder /app/pages ./pages USER nextjs # Expose -EXPOSE 3005 +EXPOSE 3000 ENV NEXT_TELEMETRY_DISABLED 1 CMD ["yarn", "start"]