From 95b0b50bee7d0e5638ba1986ee186ff144eb6eed Mon Sep 17 00:00:00 2001 From: rcsen Date: Mon, 17 Jun 2024 00:56:56 +0530 Subject: [PATCH] new file: Dockerfile --- Dockerfile | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..0d16804 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,17 @@ +# Use the official Python image from Docker Hub +FROM python:3.9 + +# Set the working directory in the container +WORKDIR /app + +# Copy the requirements file into the container at /app +COPY requirements.txt . + +# Install any needed packages 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 . . + +# Specify the command to run on container start +CMD ["python", "index.py"]