Compare commits
No commits in common. "123406bafb3586da553c2d3bd70da2d533c84cb8" and "7a676b425cb4391ed1cc1bef297838240f0bff25" have entirely different histories.
123406bafb
...
7a676b425c
@ -11,7 +11,7 @@ RUN apt-get update && apt-get install -y \
|
|||||||
&& rm -rf /var/lib/apt/lists/*
|
&& rm -rf /var/lib/apt/lists/*
|
||||||
|
|
||||||
# 复制依赖文件
|
# 复制依赖文件
|
||||||
COPY ../requirements.txt .
|
COPY requirements.txt .
|
||||||
|
|
||||||
# 安装Python依赖
|
# 安装Python依赖
|
||||||
RUN pip install --no-cache-dir -r requirements.txt
|
RUN pip install --no-cache-dir -r requirements.txt
|
||||||
|
|||||||
@ -2,13 +2,14 @@ version: '3.8'
|
|||||||
|
|
||||||
services:
|
services:
|
||||||
stock-monitor:
|
stock-monitor:
|
||||||
build:
|
build:
|
||||||
|
context: ..
|
||||||
dockerfile: docker/Dockerfile
|
dockerfile: docker/Dockerfile
|
||||||
container_name: stock-monitor
|
container_name: stock-monitor
|
||||||
ports:
|
ports:
|
||||||
- "8000:8000"
|
- "8000:8000"
|
||||||
volumes:
|
volumes:
|
||||||
- /vol1/1000/Docker/stock_monitor/stock-monitor:/app
|
- /vol1/1000/Docker/stock_montior/stock-montior:/app
|
||||||
environment:
|
environment:
|
||||||
- PYTHONUNBUFFERED=1
|
- PYTHONUNBUFFERED=1
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user