New version
This commit is contained in:
+7
-6
@@ -1,12 +1,13 @@
|
||||
FROM python:3.12-slim
|
||||
FROM python:3.11-slim
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
COPY requirements.txt .
|
||||
RUN pip install --no-cache-dir -r requirements.txt
|
||||
RUN apt-get update && apt-get install -y \
|
||||
libxml2 libxslt1.1 libjpeg62-turbo && \
|
||||
pip install --no-cache-dir fastapi uvicorn python-pptx pydantic
|
||||
|
||||
COPY app ./app
|
||||
COPY app /app
|
||||
|
||||
EXPOSE 8000
|
||||
EXPOSE 5000
|
||||
|
||||
CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "8000"]
|
||||
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "5000"]
|
||||
Reference in New Issue
Block a user