mirror of
https://github.com/henry4682/linebot_finance.git
synced 2026-05-16 04:41:52 +00:00
add app files
This commit is contained in:
17
app/Dockerfile
Normal file
17
app/Dockerfile
Normal file
@@ -0,0 +1,17 @@
|
||||
FROM python:3.11-slim
|
||||
|
||||
# 安裝 uv
|
||||
COPY --from=ghcr.io/astral-sh/uv:latest /uv /usr/local/bin/uv
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
# 複製 uv 設定檔
|
||||
COPY pyproject.toml .
|
||||
COPY uv.lock* .
|
||||
|
||||
# 安裝依賴
|
||||
RUN uv sync --frozen
|
||||
|
||||
COPY . .
|
||||
|
||||
CMD ["uv", "run", "uvicorn", "main:app", "--host", "0.0.0.0", "--port", "8000", "--reload"]
|
||||
Reference in New Issue
Block a user