-
Notifications
You must be signed in to change notification settings - Fork 0
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
John Dutchover
committed
Nov 8, 2023
1 parent
b12792c
commit d9d253d
Showing
1 changed file
with
18 additions
and
0 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,18 @@ | ||
# Use an official Python runtime as a parent image | ||
FROM python:3.11.6 | ||
|
||
# Set the working directory in the container image | ||
WORKDIR /usr/src | ||
|
||
# Copy the requirements.txt first to leverage container cache | ||
COPY app/requirements.txt ./app/ | ||
RUN pip install --no-cache-dir -r app/requirements.txt | ||
|
||
# Copy the app directory contents into the container at /usr/src/app | ||
COPY app/ ./app/ | ||
|
||
# Make port 8000 available to the world outside this container | ||
EXPOSE 8000 | ||
|
||
# Run app.main when the container launches | ||
CMD ["python", "-m", "app.main"] |