From 44f2991b0ef32293ae0742d57c205652531a2b5c Mon Sep 17 00:00:00 2001 From: Shyanukant Rathi <72182251+shyanukant@users.noreply.github.com> Date: Fri, 6 Oct 2023 11:05:26 +0000 Subject: [PATCH] fix cors issue & add collectstatic cmd --- .github/workflows/build.yml | 4 ++-- Dockerfile | 5 +++-- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 019ebbd0..fdc3ad72 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -12,10 +12,10 @@ jobs: steps: - name: Checkout Repository - uses: actions/checkout@v2 + uses: actions/checkout@v4 - name: Login to Docker Hub - uses: docker/login-action@v1 + uses: docker/login-action@v2 with: username: ${{ secrets.DOCKER_USERNAME }} password: ${{ secrets.DOCKER_TOKEN }} diff --git a/Dockerfile b/Dockerfile index 475bbd26..62fd686a 100644 --- a/Dockerfile +++ b/Dockerfile @@ -16,11 +16,12 @@ RUN chmod +x venv/bin/activate && \ COPY requirements.txt . RUN pip install --no-cache-dir -r requirements.txt -RUN python manage.py collectstatic --noinput - # Copy the rest of your Django application code COPY . . +# Run Collect static +RUN python manage.py collectstatic --noinput + COPY sshd_config /etc/ssh/ # Start and enable SSH