BookSystem/backend/auth/Dockerfile
jayhgq e9ef32a215 fix(auth): 更新数据库配置并修正Dockerfile文件路径
将PostgreSQL和Redis的host从本地地址更新为服务名称
修正Dockerfile中的文件拷贝路径和启动命令
添加swagger-ui静态文件拷贝配置
2026-03-28 00:19:26 +08:00

15 lines
267 B
Docker

FROM python:3.13-slim
WORKDIR /home/booksystem/auth
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt -i https://mirrors.aliyun.com/pypi/simple/
COPY . .
COPY swagger-ui /home/booksystem/swagger-ui
EXPOSE 8000
CMD ["python", "main.py"]