graham-walker / youtube-dl-react-viewer

Web app for youtube-dl/yt-dlp, created using the MERN stack
https://react.gwalkerux.com/
MIT License
92 stars 9 forks source link

Docker Compose Error: failed to solve: failed to read dockerfile: open /var/lib/docker/tmp/buildkit-mount1524462744/Dockerfile: no such file or directory #27

Open Snake883 opened 8 months ago

Snake883 commented 8 months ago

I'm trying to install/configure via docker compose.

When I run compose up, I get this error message: failed to solve: failed to read dockerfile: open /var/lib/docker/tmp/buildkit-mount1524462744/Dockerfile: no such file or directory

This is my docker-compose.yml file:

version: "2.4"
services:

    db:
        image: mongo:6.0-jammy
        restart: unless-stopped
        mem_limit: 512m
        networks:
            - ytrv_net
        volumes:
            - ytrv_db:/data/db

    app:
        build: .
        image: graham-walker/youtube-dl-react-viewer:1.3.1
        restart: unless-stopped
        mem_limit: 512m
        networks:
            - ytrv_net
        ports:
            - "0.0.0.0:5000:5000/tcp"
        volumes:
            - /mnt/user/MyTube:/youtube-dl
        depends_on:
            - db
        environment:
            - SUPERUSER_USERNAME=admin
            - SUPERUSER_PASSWORD=admin
            - JWT_TOKEN_SECRET=<my secret)
            - SECURE_COOKIES=false
            - YOUTUBE_DL_UPDATE_COMMAND=python3 -m pip install --no-deps -U yt-dlp

volumes:
    ytrv_db:
    ytrv_downloads:

networks:
    default:
    ytrv_net:
        driver: "bridge"
graham-walker commented 7 months ago

Need some more information on how you are running docker compose up -d

Specifically, are you running the command from the same directory as the Dockerfile? Are docker-compose.yaml and the Dockerfile located in the same directory?