-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
74222ea
commit e2fe05f
Showing
2 changed files
with
14 additions
and
3 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 |
---|---|---|
@@ -1,11 +1,20 @@ | ||
# Use an updated Python image | ||
FROM python:3.11-bookworm | ||
|
||
# Install dependencies | ||
RUN apt-get update && apt-get install -y libsnappy-dev | ||
|
||
COPY requirements.txt /app/ | ||
# Set the working directory in the container | ||
WORKDIR /app | ||
|
||
RUN pip install -r requirements.txt | ||
# First, copy only the requirements.txt file | ||
COPY requirements.txt . | ||
|
||
# Install any needed packages specified in requirements.txt | ||
RUN pip install --no-cache-dir -r requirements.txt | ||
|
||
# Now copy the rest of the application code into the container | ||
COPY . . | ||
|
||
CMD ["python3", "main.py"] | ||
# Command to run the application | ||
CMD ["python3", "main.py"] |
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