forked from hackintoshrao/sqlglot
-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathDockerfile
More file actions
30 lines (21 loc) · 859 Bytes
/
Dockerfile
File metadata and controls
30 lines (21 loc) · 859 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
26
27
28
29
30
FROM python:3.12-alpine
# Set the working directory in the container
WORKDIR /app
# Install dependencies required for building certain packages
RUN apk add --no-cache gcc g++ cmake make libxml2-dev libxslt-dev openssl && \
adduser --home /app e6 --disabled-password
# Copy the requirements file into the container
COPY requirements.txt .
# Install any dependencies
RUN pip install --no-cache-dir -r requirements.txt
# Install specific FastAPI, Uvicorn, and multipart dependencies
RUN pip install fastapi==0.115.4 uvicorn==0.32.0 python-multipart
# Copy the rest of the application code into the container
COPY . .
# Make port 8100 available to the world outside this container
USER e6
EXPOSE 8100
HEALTHCHECK none
# Run the FastAPI app using Uvicorn
# Workers will be calculated dynamically based on CPU cores
CMD ["python", "converter_api.py"]