Run 8091 and 8092 dashboards with Docker
This commit is contained in:
27
Dockerfile
27
Dockerfile
@@ -2,18 +2,33 @@ FROM python:3.12-slim
|
||||
|
||||
ENV PYTHONDONTWRITEBYTECODE=1 \
|
||||
PYTHONUNBUFFERED=1 \
|
||||
PORT=8090
|
||||
PORT=8091 \
|
||||
CHROME_PATH=/usr/bin/chromium
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
RUN apt-get update \
|
||||
&& apt-get install -y --no-install-recommends \
|
||||
chromium \
|
||||
fonts-noto-cjk \
|
||||
nodejs \
|
||||
npm \
|
||||
&& rm -rf /var/lib/apt/lists/*
|
||||
|
||||
COPY requirements.txt ./
|
||||
RUN pip install --no-cache-dir -r requirements.txt
|
||||
|
||||
COPY app.py index.html detail-view.html detail-view-project.html ./
|
||||
RUN npm install --omit=dev playwright-core
|
||||
|
||||
# matching.db는 볼륨으로 마운트해서 데이터 보존
|
||||
VOLUME ["/app/data"]
|
||||
COPY mysql_preview_server.py \
|
||||
index.html \
|
||||
detail-view.html \
|
||||
detail-view-project.html \
|
||||
mysql-preview.html \
|
||||
people-unified.html \
|
||||
project-codes.html \
|
||||
./
|
||||
|
||||
EXPOSE 8090
|
||||
EXPOSE 8091 8092
|
||||
|
||||
CMD ["sh", "-c", "ln -sf /app/data/matching.db /app/matching.db 2>/dev/null || true; python3 app.py"]
|
||||
CMD ["python3", "mysql_preview_server.py"]
|
||||
|
||||
Reference in New Issue
Block a user