mirror of
https://github.com/nadimkobeissi/mkbsd.git
synced 2025-01-03 10:39:32 +00:00
Create Dockerfile.python
This commit is contained in:
parent
82e50c64f0
commit
af2a5c8bcc
17
Dockerfile.python
Normal file
17
Dockerfile.python
Normal 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"]
|
Loading…
Reference in New Issue
Block a user