-
Notifications
You must be signed in to change notification settings - Fork 58
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Full source code in the docker image #178
Comments
Fair point that they're not required, but the
Good spot, thanks! |
Then why is this not working? Lines 65 to 66 in d10de82
|
maybe a better solution https://shisho.dev/blog/posts/how-to-use-dockerignore/ |
When running it on my instance, it does find the, root@vps:/var/docker/Lychee-docker perso ✗ 167d14h ◒
▶ docker exec -it lychee bash
root@e7d513f87a2f:/var/www/html/Lychee# find . -wholename '*/[Tt]ests/*'
./tests/LoadedSubscriber.php
./tests/Samples
./tests/Samples/xcf.xcf
./tests/Samples/gif.gif
./tests/Samples/night.jpg
./tests/Samples/orientation-180.jpg
./tests/Samples/train.jpg
./tests/Samples/orientation-90.jpg
./tests/Samples/tags.json
./tests/Samples/ettlinger-alb.jpg
./tests/Samples/hochuferweg.jpg
./tests/Samples/orientation-270.jpg
./tests/Samples/pdf.pdf
./tests/Samples/google_motion_photo_broken.jpg
./tests/Samples/gaming.mp4
./tests/Samples/tiff
./tests/Samples/webp.webp
./tests/Samples/google_motion_photo.jpg
./tests/Samples/train.mov
./tests/Samples/mongolia
./tests/Samples/tiff.tif
./tests/Samples/commits.json
./tests/Samples/without_exif.jpg
./tests/Samples/orientation-hflip.jpg
./tests/Samples/orientation-vflip.jpg
./tests/Samples/fin de journ??e.jpg
./tests/Samples/aarhus.jpg
./tests/Samples/mongolia.jpeg
./tests/Samples/undefined-exif-tag.jpg
./tests/Samples/png.png
./tests/Livewire
./tests/Livewire/WireableTest.php
./tests/Livewire/Forms
./tests/Livewire/Forms/ImportFromUrlTest.php
./tests/Livewire/Forms/Photo
... |
AFAIK |
this command change the directory Line 62 in d10de82
the delete command is use a dot, it therefore uses the current directory |
Nicely spotted! |
I'm missing something here. That's the directory we want it to run in. But yes, they're not being deleted. |
This appears to be a (somewhat) common issue with Docker builds. |
i have tried to integrate the
but he is still complaining about a file where I do not yet know exactly where this comes from
|
That was my first thought, and may be the case, but running them all in the same command stops Docker creating a new layer so should deal with that. The deletion of .git content is working. |
I took a closer look at the docker image today and noticed that the entire code including github workflows etc. is contained in the docker image and not just the finished source code.
The docker image would be smaller if only the required code was transferred
Lychee-Docker/Dockerfile
Lines 81 to 83 in d10de82
the last line should be enough
The text was updated successfully, but these errors were encountered: