first commit
This commit is contained in:
commit
18bcafe29b
8 changed files with 143 additions and 0 deletions
18
Dockerfile
Normal file
18
Dockerfile
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
# Use an official Python runtime as a parent image
|
||||
FROM python:3.10-slim
|
||||
|
||||
# Set the working directory in the container
|
||||
WORKDIR /app
|
||||
|
||||
# Copy the requirements and application files
|
||||
COPY requirements.txt requirements.txt
|
||||
COPY . .
|
||||
|
||||
# Install Python dependencies
|
||||
RUN pip install --no-cache-dir -r requirements.txt
|
||||
|
||||
# Expose the port Flask runs on
|
||||
EXPOSE 5000
|
||||
|
||||
# Define the command to run the app
|
||||
CMD ["python", "server.py"]
|
||||
Loading…
Add table
Add a link
Reference in a new issue