feat: change docker image creation
Some checks failed
Docker Build (PR) / Build Docker image (pull_request) Failing after 2m0s
Some checks failed
Docker Build (PR) / Build Docker image (pull_request) Failing after 2m0s
This commit is contained in:
@@ -11,3 +11,7 @@ venv/
|
||||
.gitignore
|
||||
node_modules/
|
||||
uv.lock
|
||||
test.py
|
||||
result.xml
|
||||
README.md
|
||||
.gitea/
|
||||
|
||||
13
Dockerfile
13
Dockerfile
@@ -1,15 +1,20 @@
|
||||
# syntax=docker/dockerfile:1
|
||||
FROM python:3.13
|
||||
FROM python:3.13-slim
|
||||
|
||||
ENV PYTHONDONTWRITEBYTECODE=1 \
|
||||
PYTHONUNBUFFERED=1 \
|
||||
PIP_DISABLE_PIP_VERSION_CHECK=1
|
||||
PIP_DISABLE_PIP_VERSION_CHECK=1 \
|
||||
# Playwright won't be installed for actual browser automation
|
||||
PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD=1
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
# Copy dependency list and install first (leverages Docker layer cache)
|
||||
# Install only runtime dependencies needed for bibapi and requests
|
||||
# This avoids installing Playwright browsers which are huge
|
||||
COPY requirements.txt ./
|
||||
RUN pip install --no-cache-dir -r requirements.txt
|
||||
RUN pip install --no-cache-dir -r requirements.txt && \
|
||||
# Clean up pip cache
|
||||
rm -rf /root/.cache/pip
|
||||
|
||||
# Copy application code
|
||||
COPY app ./app
|
||||
|
||||
Reference in New Issue
Block a user