Skip to content

Commit

Permalink
updated docker-ci.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
im-niber committed Aug 13, 2024
1 parent 0226b64 commit 9873e79
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci-docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,11 @@ jobs:

steps:
- name: Checkout code
uses: actions/checkout@v4
uses: actions/checkout@v2

- name: Run lint and type checks
run: |
docker compose run --rm app sh -c "mypy . && ruff check --fix . && ruff format"
docker compose run --rm app sh -c "mypy . && ruff check . && ruff format"
- name: Run tests
run: |
Expand Down
5 changes: 1 addition & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ WORKDIR /app
EXPOSE 8000

ARG DEV=true
RUN apk add --update --no-cache libffi-dev

RUN pip install --upgrade pip && \
if [ $DEV = "true" ]; then \
pip install -r /tmp/requirements.dev.txt ; \
Expand All @@ -19,9 +19,6 @@ RUN pip install --upgrade pip && \
fi && \
rm -rf /tmp && \
adduser --disabled-password --no-create-home django-user && \
mkdir -p /app/.ruff_cache && \
chown -R django-user:django-user /app/.ruff_cache && \
chmod 755 /app/.ruff_cache

ENV PATH="/py/bin:$PATH"

Expand Down

0 comments on commit 9873e79

Please sign in to comment.