배포
This commit is contained in:
commit
d9ef64eafe
35 files changed
+4733
No files matched your search
+27
@@ -0,0 +1,27 @@
|
||||
FROM python:3.12-slim
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
# 7z 압축 해제 도구 설치
|
||||
RUN apt-get update && apt-get install -y --no-install-recommends \
|
||||
p7zip-full \
|
||||
curl \
|
||||
&& rm -rf /var/lib/apt/lists/*
|
||||
|
||||
# 파이썬 의존성 설치
|
||||
COPY backend/requirements.txt .
|
||||
RUN pip install --no-cache-dir -r requirements.txt
|
||||
|
||||
# 백엔드 및 빌드된 프론트엔드 정적 파일 복사
|
||||
COPY backend/ ./backend/
|
||||
COPY frontend/dist/ ./frontend/dist/
|
||||
COPY main.py run.py ./
|
||||
|
||||
EXPOSE 8000
|
||||
|
||||
ENV TRANSMISSION_HOST=127.0.0.1
|
||||
ENV TRANSMISSION_PORT=9091
|
||||
ENV DOWNLOADS_DIR=/downloads
|
||||
|
||||
CMD ["python", "run.py"]
|
||||
|
||||
Reference in new issue
Block a user