From d539f251dda60c46223388d3de1fba5f1c8a40f2 Mon Sep 17 00:00:00 2001 From: Zemuldo Date: Wed, 27 Dec 2023 17:50:09 +0300 Subject: [PATCH] docker vile node version --- .../master_zemuldo-dot-com-app-service.yml | 57 ------------------- Dockerfile | 6 +- 2 files changed, 4 insertions(+), 59 deletions(-) delete mode 100644 .github/workflows/master_zemuldo-dot-com-app-service.yml diff --git a/.github/workflows/master_zemuldo-dot-com-app-service.yml b/.github/workflows/master_zemuldo-dot-com-app-service.yml deleted file mode 100644 index a953d74..0000000 --- a/.github/workflows/master_zemuldo-dot-com-app-service.yml +++ /dev/null @@ -1,57 +0,0 @@ -# Docs for the Azure Web Apps Deploy action: https://github.com/Azure/webapps-deploy -# More GitHub Actions for Azure: https://github.com/Azure/actions - -name: Build and deploy Node.js app to Azure Web App - zemuldo-dot-com-app-service - -on: - push: - branches: - - master - - deploy - workflow_dispatch: - -jobs: - build: - runs-on: ubuntu-latest - - steps: - - uses: actions/checkout@v2 - - - name: Set up Node.js version - uses: actions/setup-node@v1 - with: - node-version: '14.x' - - - name: npm install, build, and test - run: | - npm install - npm run build --if-present - - - uses: actions/upload-artifact@v3 - with: - name: node-app - path: | - . - !./node_modules - - deploy: - runs-on: ubuntu-latest - needs: build - environment: - name: 'Production' - url: ${{ steps.deploy-to-webapp.outputs.webapp-url }} - - steps: - - name: Download artifact from build job - uses: actions/download-artifact@v2 - with: - name: node-app - - - name: 'Deploy to Azure Web App' - id: deploy-to-webapp - uses: azure/webapps-deploy@v2 - with: - app-name: 'zemuldo-dot-com-app-service' - slot-name: 'Production' - publish-profile: ${{ secrets.AZUREAPPSERVICE_PUBLISHPROFILE_E1D25787ECF746F0963E5C5C33B9190E }} - package: . diff --git a/Dockerfile b/Dockerfile index 2ebd8b7..7f84f74 100644 --- a/Dockerfile +++ b/Dockerfile @@ -35,8 +35,10 @@ COPY --from=builder /app/helpers ./helpers USER nextjs -EXPOSE 80 +EXPOSE 8080 -ENV PORT 80 +ENV PORT 8080 +ENV GITHUB_CLIENT_ID e6831840d043f12bfa06 +ENV NODE_ENV production CMD ["npm", "start"]