mirror of
https://github.com/nadimkobeissi/mkbsd.git
synced 2025-04-20 20:06:33 -04:00
Merge b54ff63469
into 82e50c64f0
This commit is contained in:
commit
59f17db164
2 changed files with 29 additions and 0 deletions
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"]
|
12
README.md
12
README.md
|
@ -30,6 +30,18 @@ MKBSD comes in two variants! Node.js and Python.
|
|||
4. Wait a little.
|
||||
5. All wallpapers are now in a newly created `downloads` subfolder.
|
||||
|
||||
### Running in Python (Docker)
|
||||
|
||||
1. Ensure you have Docker installed. [Get Docker](https://docs.docker.com/get-docker/)
|
||||
2. Build the container image:
|
||||
```
|
||||
docker build -t mkbsd:python -f Dockerfile.python .
|
||||
```
|
||||
3. Run the container:
|
||||
```
|
||||
docker run -v $PWD/downloads:/app/downloads mkbsd:python
|
||||
```
|
||||
|
||||
## FAQ
|
||||
|
||||
### Q: What's the story behind this?
|
||||
|
|
Loading…
Add table
Reference in a new issue