change workdir and fix uv venv usage
This commit is contained in:
@@ -1,8 +1,10 @@
|
||||
FROM python:3.14-alpine
|
||||
ENV PYTHONUNBUFFERED=1
|
||||
COPY --from=ghcr.io/astral-sh/uv:latest /uv /uvx /usr/local/bin/
|
||||
WORKDIR /code/
|
||||
WORKDIR /app
|
||||
COPY pyproject.toml .
|
||||
RUN uv venv && uv pip install -r pyproject.toml
|
||||
ENV VIRTUAL_ENV=/opt/venv
|
||||
RUN uv venv $VIRTUAL_ENV && uv pip install -r pyproject.toml
|
||||
ENV PATH="/opt/venv/bin:$PATH"
|
||||
COPY . .
|
||||
ENTRYPOINT ["./entrypoint.sh"]
|
||||
|
||||
Reference in New Issue
Block a user