Create Dockerfile
Browse files- Dockerfile +17 -0
Dockerfile
ADDED
@@ -0,0 +1,17 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# Set the base image using Python 3.12 and Debian Bookworm
|
2 |
+
FROM python:3.12-slim-bookworm
|
3 |
+
|
4 |
+
# Set the working directory to /app
|
5 |
+
WORKDIR /app
|
6 |
+
|
7 |
+
# Copy only the necessary files to the working directory
|
8 |
+
COPY . /app
|
9 |
+
|
10 |
+
# Install the requirements
|
11 |
+
RUN pip install --no-cache-dir --upgrade -r /app/requirements.txt
|
12 |
+
|
13 |
+
# Expose the port the app runs on
|
14 |
+
EXPOSE 80
|
15 |
+
|
16 |
+
# Run the app with the Litestar CLI
|
17 |
+
CMD ["litestar", "run", "--host", "0.0.0.0", "--port", "80"]
|