Skip to content

Commit

Permalink
fix cors issue & add collectstatic cmd
Browse files Browse the repository at this point in the history
  • Loading branch information
shyanukant committed Oct 6, 2023
1 parent 29bff6f commit 44f2991
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down
5 changes: 3 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 44f2991

Please sign in to comment.