diff --git a/Dockerfile b/Dockerfile index 7458cb7..4933829 100644 --- a/Dockerfile +++ b/Dockerfile @@ -4,44 +4,13 @@ ENV PYTHONUNBUFFERED=1 WORKDIR /app/ -# Install uv -# Ref: https://docs.astral.sh/uv/guides/integration/docker/#installing-uv -COPY --from=ghcr.io/astral-sh/uv:0.5.11 /uv /uvx /bin/ - -# Place executables in the environment at the front of the path -# Ref: https://docs.astral.sh/uv/guides/integration/docker/#using-the-environment -ENV PATH="/app/.venv/bin:$PATH" - -# Compile bytecode -# Ref: https://docs.astral.sh/uv/guides/integration/docker/#compiling-bytecode -ENV UV_COMPILE_BYTECODE=1 - -# uv Cache -# Ref: https://docs.astral.sh/uv/guides/integration/docker/#caching -ENV UV_LINK_MODE=copy - -# Install dependencies -# Ref: https://docs.astral.sh/uv/guides/integration/docker/#intermediate-layers -RUN --mount=type=cache,target=/root/.cache/uv \ - --mount=type=bind,source=uv.lock,target=uv.lock \ - --mount=type=bind,source=pyproject.toml,target=pyproject.toml \ - uv sync --frozen --no-install-project -i https://pypi.tuna.tsinghua.edu.cn/simple - -ENV PYTHONPATH=/app - - -#COPY pyproject.toml uv.lock /app/ - COPY pyproject.toml uv.lock /app/ COPY website/ /app/website/ - -# Sync the project -# Ref: https://docs.astral.sh/uv/guides/integration/docker/#intermediate-layers -RUN --mount=type=cache,target=/root/.cache/uv \ - uv sync +RUN python -m pip install django djangorestframework drf-yasg uvicorn -i https://pypi.tuna.tsinghua.edu.cn/simple WORKDIR /app/website/ + #CMD ["python", "-m", "uvicorn", "website.asgi:application"] \ #CMD ["python","manage.py","runserver"] \ No newline at end of file diff --git a/readme.md b/readme.md new file mode 100644 index 0000000..e614825 --- /dev/null +++ b/readme.md @@ -0,0 +1,2 @@ +# Document +