mirror of
https://github.com/jaypyles/Scraperr.git
synced 2026-08-25 05:46:28 +00:00
fix: optimize Dockerfile
This commit is contained in:
@@ -5,12 +5,12 @@ RUN apt update && apt install -y uvicorn
|
||||
RUN python -m pip --no-cache-dir install pdm
|
||||
RUN pdm config python.use_venv false
|
||||
|
||||
COPY pyproject.toml pdm.lock /project/app/
|
||||
|
||||
WORKDIR /project/app
|
||||
COPY pyproject.toml pdm.lock /project/app/
|
||||
RUN pdm install
|
||||
|
||||
COPY ./api/ /project/app/api
|
||||
WORKDIR /project/app
|
||||
|
||||
# Create final image
|
||||
FROM python:3.10.12-slim
|
||||
|
||||
Reference in New Issue
Block a user