srivatsavdamaraju's picture
Create Dockerfile
28ba083 verified
raw
history blame
493 Bytes
# Use Python 3.9 as the base image
FROM python:3.9-slim
# Set environment variables to avoid writing .pyc files
ENV PYTHONUNBUFFERED 1
# Set the working directory in the container
WORKDIR /app
# Copy the requirements.txt file into the container
COPY requirements.txt /app/
# Install dependencies
RUN pip install --no-cache-dir -r requirements.txt
# Copy the Python client script into the container
COPY client.py /app/
# Set the command to run the Python client
CMD ["python", "app.py"]