mirror of
https://github.com/nadimkobeissi/mkbsd.git
synced 2025-01-03 10:39:32 +00:00
18 lines
397 B
Docker
18 lines
397 B
Docker
# 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"]
|