Create Dockerfile.python

This commit is contained in:
Puru 2024-09-25 14:07:26 +05:45 committed by GitHub
parent 82e50c64f0
commit af2a5c8bcc
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

17
Dockerfile.python Normal file
View file

@ -0,0 +1,17 @@
# Use an official Python runtime as the base image
FROM python:3.9-slim
# Set the working directory in the container
WORKDIR /app
# Copy the Python script into the container
COPY mkbsd.py /app/mkbsd.py
# Install the required packages
RUN pip install aiohttp
# Set Python to run in unbuffered mode
ENV PYTHONUNBUFFERED=1
# Run the script when the container launches
CMD ["python", "mkbsd.py"]