Skip to content

Commit

Permalink
Merge pull request #20 from beatcode-official/bao-tmp-fix
Browse files Browse the repository at this point in the history
fix: mount tmp to container for running submitted code
  • Loading branch information
weebao authored Jan 2, 2025
2 parents 88185b3 + 6fb354f commit e7b4fce
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@ FROM python:3.11-alpine
WORKDIR /app

COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
RUN python -m venv venv && \
. venv/bin/activate && \
pip install --no-cache-dir -r requirements.txt

COPY app/ .

Expand Down
1 change: 1 addition & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ services:
- .env
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- /tmp:/tmp
depends_on:
- db

Expand Down

0 comments on commit e7b4fce

Please sign in to comment.