Compare commits
1 Commits
main
...
codex/uber
| Author | SHA1 | Date | |
|---|---|---|---|
| 7d0231c004 |
@@ -26,4 +26,4 @@ services:
|
|||||||
volumes:
|
volumes:
|
||||||
- ./data/jd-output:/output:rw
|
- ./data/jd-output:/output:rw
|
||||||
- ./data/md5:/md5:rw
|
- ./data/md5:/md5:rw
|
||||||
- ${SSH_KEY_PATH:-/root/.ssh/id_ed25519}:/ssh/id_ed25519:ro
|
- /root/.ssh/id_ed25519:/ssh/id_ed25519:ro
|
||||||
|
|||||||
@@ -2,17 +2,19 @@ FROM python:3.12-slim
|
|||||||
|
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
RUN apt-get update && apt-get install -y --no-install-recommends ffmpeg && rm -rf /var/lib/apt/lists/*
|
RUN apt-get update \
|
||||||
|
&& apt-get install -y --no-install-recommends ffmpeg \
|
||||||
|
&& rm -rf /var/lib/apt/lists/*
|
||||||
|
|
||||||
COPY requirements.txt .
|
RUN pip install --no-cache-dir \
|
||||||
RUN pip install --no-cache-dir -r requirements.txt
|
fastapi \
|
||||||
|
uvicorn \
|
||||||
|
myjdapi \
|
||||||
|
paramiko \
|
||||||
|
python-multipart
|
||||||
|
|
||||||
RUN useradd -m -u 1000 appuser && chown appuser:appuser /app
|
COPY app.py /app/app.py
|
||||||
|
COPY static /app/static
|
||||||
USER appuser
|
|
||||||
|
|
||||||
COPY --chown=appuser:appuser app.py .
|
|
||||||
COPY --chown=appuser:appuser static ./static
|
|
||||||
|
|
||||||
EXPOSE 8080
|
EXPOSE 8080
|
||||||
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "8080"]
|
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "8080"]
|
||||||
|
|||||||
2652
jd-webgui/app.py
2652
jd-webgui/app.py
File diff suppressed because it is too large
Load Diff
@@ -1,5 +0,0 @@
|
|||||||
fastapi
|
|
||||||
uvicorn
|
|
||||||
myjdapi
|
|
||||||
paramiko
|
|
||||||
python-multipart
|
|
||||||
Reference in New Issue
Block a user