docker build

This commit is contained in:
Siwat Sirichai 2025-02-03 12:01:56 +07:00
parent 7d2cf464b1
commit 5f7bebdaf9
2 changed files with 17 additions and 0 deletions

17
Dockerfile Normal file
View file

@ -0,0 +1,17 @@
# Use the official Python image from the Docker Hub
FROM python:3.9-slim
# Set the working directory in the container
WORKDIR /app
# Copy the requirements file into the container at /app
COPY requirements.txt .
# Install any dependencies specified in requirements.txt
RUN pip install --no-cache-dir -r requirements.txt
# Copy the rest of the application code into the container at /app
COPY . .
# Run the application
CMD ["python", "./app.py"]