diff --git a/server/Dockerfile b/server/Dockerfile index c4c0dcc..b3010c0 100644 --- a/server/Dockerfile +++ b/server/Dockerfile @@ -5,14 +5,14 @@ ENV PYTHONDONTWRITEBYTECODE=1 \ WORKDIR /app -COPY requirements.txt . +COPY requirements.txt /app/requirements.txt 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 # Use gunicorn or uvicorn for FastAPI # Run the FastAPI application as a module so that relative imports work -CMD ["uvicorn", "server.main:app", "--host", "0.0.0.0", "--port", "8000"] \ No newline at end of file +CMD ["uvicorn", "server.main:app", "--host", "0.0.0.0", "--port", "8000"]