Skip to content

Commit

Permalink
add Containerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
John Dutchover committed Nov 8, 2023
1 parent b12792c commit d9d253d
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions Containerfile
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"]

0 comments on commit d9d253d

Please sign in to comment.