-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
finalize dockerfile and requirements file
- Loading branch information
1 parent
f73defa
commit 7d82542
Showing
12 changed files
with
1,266 additions
and
136 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
# Use an official lightweight Python runtime as a base image | ||
FROM python:3.12-slim | ||
|
||
# Set the working directory inside the container | ||
WORKDIR /app | ||
|
||
# Copy the application code into the container | ||
COPY . . | ||
|
||
# Install necessary system dependencies | ||
RUN apt-get update && apt-get install -y \ | ||
libffi-dev libssl-dev curl && \ | ||
rm -rf /var/lib/apt/lists/* | ||
|
||
# Install Python dependencies | ||
RUN pip install --no-cache-dir -r requirements.txt | ||
|
||
# Expose the port on which the FastAPI app will run | ||
EXPOSE 8000 | ||
|
||
# Command to run the FastAPI app with uvicorn | ||
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "8000"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.