change working dir

This commit is contained in:
Daniel 2023-11-22 21:27:43 +01:00
parent ee1acebf3d
commit 012cd1d36a
2 changed files with 3 additions and 3 deletions

View file

@ -1,7 +1,5 @@
FROM python:3.12-slim FROM python:3.12-slim
WORKDIR /code
RUN pip install --no-cache-dir pytest-playwright RUN pip install --no-cache-dir pytest-playwright
RUN playwright install RUN playwright install
@ -10,3 +8,5 @@ RUN playwright install-deps
COPY ./requirements.txt ./ COPY ./requirements.txt ./
RUN pip install --no-cache-dir -r requirements.txt RUN pip install --no-cache-dir -r requirements.txt
WORKDIR /code/src

View file

@ -2,7 +2,7 @@
```bash ```bash
docker compose build docker compose build
docker compose run --rm app python ./src/ docker compose run --rm app python ./main.py
docker compose run --rm app pytest docker compose run --rm app pytest
# docker-compose up # docker-compose up
``` ```