提交 ce799f8b authored 作者: zhanglu's avatar zhanglu

v1 docker build

上级 5a24b93c
...@@ -12,7 +12,7 @@ APP_ENV=development ...@@ -12,7 +12,7 @@ APP_ENV=development
SECRET_KEY=change-me-in-production SECRET_KEY=change-me-in-production
# Database # Database
DATABASE_URL=sqlite:///./legal_system.db DATABASE_URL=sqlite:///./data/app.db
# Server # Server
HOST=0.0.0.0 HOST=0.0.0.0
......
...@@ -8,11 +8,7 @@ COPY requirements.txt . ...@@ -8,11 +8,7 @@ COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt -i https://pypi.tuna.tsinghua.edu.cn/simple RUN pip install --no-cache-dir -r requirements.txt -i https://pypi.tuna.tsinghua.edu.cn/simple
# Copy source # Copy source
COPY main.py main.py COPY . .
COPY app/ /law_order/app
COPY data/ /law_order/data
COPY logs/ /law_order/logs
COPY .env /law_order/.env
EXPOSE 8080 EXPOSE 8080
......
No preview for this file type
Markdown 格式
0% 或
您添加了 0 人 到此讨论。请谨慎行事。
请先完成此评论的编辑!
请 注册 或者 后发表评论