Skip to content

Commit 41026b6

Browse files
committed
Update dockerfile
u u
1 parent 644912f commit 41026b6

3 files changed

Lines changed: 7 additions & 963 deletions

File tree

.dockerignore

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
.git
22
.github
3-
.vscode
43
.deepsource.toml
54
.editorconfig
65
.gitignore
76
.pre-commit-config.yaml
8-
pyproject.toml
7+
requirements.txt
98
renovate.json

Dockerfile

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,10 @@ LABEL org.opencontainers.image.licenses=MIT
88
LABEL org.opencontainers.image.title="AkariBot WebRender"
99
LABEL maintainer="Teahouse Studios <admin@teahou.se>"
1010

11+
RUN pip install uv
12+
1113
WORKDIR /akari-bot-webrender
14+
1215
ENV PYTHONDONTWRITEBYTECODE=1
1316
ENV PYTHONUNBUFFERED=1
1417

@@ -34,9 +37,9 @@ RUN apt-get update && apt-get install -y \
3437
libasound2 \
3538
&& rm -rf /var/lib/apt/lists/*
3639

37-
COPY requirements.txt .
38-
RUN pip install --no-cache-dir -r requirements.txt
39-
RUN playwright install --with-deps chromium
40+
COPY pyproject.toml uv.lock README.md ./
41+
RUN uv sync --frozen
42+
RUN uv run playwright install --with-deps chromium
4043

4144
ADD . .
4245
CMD ["python", "./run_server.py"]

0 commit comments

Comments
 (0)