Created
April 15, 2025 06:49
-
-
Save baobuiquang/d02a3fa6078ae719a63c503eaa9a1952 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| List IMG docker images | |
| List CON docker ps -a | |
| Build IMG docker-compose build | |
| Run CON detached docker-compose up -d | |
| Build IMG + Run CON detached docker-compose up -d --build | |
| Stop CON + Remove CON docker-compose down | |
| Remove everything unused docker system prune -a --volumes -f | |
| Remove everything 1. docker stop $(docker ps -a -q) | |
| 2. docker rm -f $(docker ps -a -q) | |
| 3. docker rmi -f $(docker images -q) | |
| 4. docker volume rm -f $(docker volume ls -q) | |
| 5. docker network rm $(docker network ls -q) | |
| 6. docker system prune -a --volumes -f |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| services: | |
| forge: | |
| build: . | |
| ports: | |
| - "1234:1234" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| FROM python:3.10.10-slim-bullseye | |
| RUN apt-get update && apt-get install -y git | |
| WORKDIR /WORKDIR | |
| RUN git clone https://github.com/OneLevelStudio/FORGE . | |
| RUN printf 'export COMMANDLINE_ARGS="--api --listen --port 1234"' >> webui-user.sh | |
| EXPOSE 1234 | |
| CMD ["bash", "-c", "source webui.sh -f"] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment