mirror of
https://github.com/TronoSfera/backup_service.git
synced 2026-05-18 10:03:32 +03:00
Merge pull request #1 from TronoSfera/codex/fix-modulenotfounderror-for-server
Fix server package layout in Dockerfile
This commit is contained in:
commit
b2a3b895ba
1 changed files with 4 additions and 4 deletions
|
|
@ -5,14 +5,14 @@ ENV PYTHONDONTWRITEBYTECODE=1 \
|
||||||
|
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
COPY requirements.txt .
|
COPY requirements.txt /app/requirements.txt
|
||||||
RUN pip install --no-cache-dir --upgrade pip && \
|
RUN pip install --no-cache-dir --upgrade pip && \
|
||||||
pip install --no-cache-dir -r requirements.txt
|
pip install --no-cache-dir -r /app/requirements.txt
|
||||||
|
|
||||||
COPY . .
|
COPY . /app/server
|
||||||
|
|
||||||
EXPOSE 8000
|
EXPOSE 8000
|
||||||
|
|
||||||
# Use gunicorn or uvicorn for FastAPI
|
# Use gunicorn or uvicorn for FastAPI
|
||||||
# Run the FastAPI application as a module so that relative imports work
|
# Run the FastAPI application as a module so that relative imports work
|
||||||
CMD ["uvicorn", "server.main:app", "--host", "0.0.0.0", "--port", "8000"]
|
CMD ["uvicorn", "server.main:app", "--host", "0.0.0.0", "--port", "8000"]
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue