-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDOCKERFILE
More file actions
25 lines (18 loc) · 795 Bytes
/
DOCKERFILE
File metadata and controls
25 lines (18 loc) · 795 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
# Use an official Python runtime as a parent image
FROM python:3.12.4-slim
# Install system packages required for building Python packages
RUN apt-get update -y && \
apt-get install -y krb5-config libkrb5-dev krb5-user build-essential openssl
# Set the working directory in the container
WORKDIR /app
# Copy the current directory contents into the container at /app
COPY . /app
# Install any needed dependencies specified in requirements.txt
RUN pip install -r requirements.txt
# Make port 9000 available to the world outside this container
EXPOSE 9000
# Define environment variable
ENV NAME World
# Run app.py when the container launches
# CMD ["python", "app.py", "-uri", "bolt://127.0.0.1:7687"]
CMD ["uvicorn", "main:app", "--workers", "4", "--port", "9000", "--host", "0.0.0.0"]