Rudloff / alltube

Web GUI for youtube-dl
GNU General Public License v3.0
2.96k stars 582 forks source link

Docker image exposing a lot of files #281

Closed Pofilo closed 4 years ago

Pofilo commented 4 years ago

Hello,

The Docker image is exposing a lot of files due to COPY . /var/www/html/. For example the .git directory is available and the files in it: example.com/.git/index.

Shouldn't alltube be built on a specific folder and the COPY made on this folder ? Or maybe using the zip generated in the releases and adding an apache (or whatever) to expose it ? I can help with a PR if needed but I never used composer and php stuffs.

Thanks.

Rudloff commented 4 years ago

Hello, I don't use Docker anymore so the image is not really maintained. However, pull requests are welcome.

Rudloff commented 4 years ago

I added the .git folder to .dockerignore. It also now only installs production Composer dependencies.

Pofilo commented 4 years ago

That's a good idea I think ! But I was looking for a way to include all the content of the .gitignore, I don't know if some files are necessary for the running ..

Rudloff commented 4 years ago

I am not sure I understand what you are suggesting. .dockerignore is currently a symlink to .gitignore so the only files included in the Docker image will be the source code from the Git repository + the dependencies installed with Composer.