섹션 조회 추가
This commit is contained in:
17
dockerfile
17
dockerfile
@@ -1,17 +1,18 @@
|
||||
# Dockerfile
|
||||
|
||||
FROM python:3.10-slim
|
||||
|
||||
RUN pip install uv
|
||||
|
||||
WORKDIR /workspace
|
||||
|
||||
COPY requirements.txt .
|
||||
RUN uv pip install --system --no-cache -r requirements.txt
|
||||
|
||||
COPY workspace/ .
|
||||
|
||||
RUN pip install --no-cache-dir -r requirements.txt
|
||||
COPY workspace/app.py .
|
||||
|
||||
COPY . .
|
||||
|
||||
# 서비스가 사용할 포트를 명시합니다 (문서화 목적).
|
||||
EXPOSE 8501
|
||||
EXPOSE 8502
|
||||
|
||||
CMD ["streamlit", "run", "app.py", "--server.port=8501", "--server.address=0.0.0.0"]
|
||||
# 컨테이너의 기본 실행 명령을 정의합니다.
|
||||
# 이 명령은 docker-compose.yml 파일의 command에 의해 각 서비스별로 재정의됩니다.
|
||||
CMD ["streamlit", "run", "app.py", "--server.port=8501", "--server.address=0.0.0.0"]
|
||||
|
||||
Reference in New Issue
Block a user