mirror of
https://github.com/docker/awesome-compose.git
synced 2026-03-09 06:52:08 -05:00
What is the purpose of COPY --from=gloursdocker/docker / /?
#101
Open
opened 2025-11-06 14:18:38 -06:00 by GiteaMirror
·
10 comments
No Branch/Tag Specified
master
dependabot/npm_and_yarn/angular/angular/multi-4a74de0a3b
dependabot/npm_and_yarn/angular/angular/immutable-4.3.8
dependabot/npm_and_yarn/react-express-mysql/frontend/multi-8c2b01a32b
dependabot/npm_and_yarn/vuejs/vuejs/minimatch-3.1.5
dependabot/npm_and_yarn/react-express-mongodb/frontend/multi-8c2b01a32b
dependabot/npm_and_yarn/vuejs/vuejs/svgo-2.8.2
dependabot/npm_and_yarn/react-express-mongodb/backend/minimatch-3.1.5
dependabot/npm_and_yarn/react-express-mysql/frontend/rollup-2.80.0
dependabot/npm_and_yarn/react-rust-postgres/frontend/multi-8c2b01a32b
dependabot/npm_and_yarn/react-java-mysql/frontend/multi-8c2b01a32b
dependabot/npm_and_yarn/react-express-mysql/backend/multi-829fc934ed
dependabot/npm_and_yarn/react-rust-postgres/frontend/rollup-2.80.0
dependabot/npm_and_yarn/react-nginx/multi-8c2b01a32b
dependabot/npm_and_yarn/react-nginx/multi-a07fd7252a
dependabot/npm_and_yarn/react-express-mongodb/frontend/axios-1.13.5
dependabot/npm_and_yarn/react-rust-postgres/frontend/multi-c8afcbbcd8
dependabot/npm_and_yarn/react-express-mysql/frontend/multi-3c165ed7cd
dependabot/npm_and_yarn/react-nginx/multi-e38666b8df
dependabot/npm_and_yarn/react-nginx/multi-3c165ed7cd
dependabot/npm_and_yarn/react-rust-postgres/frontend/multi-3c165ed7cd
dependabot/npm_and_yarn/react-java-mysql/frontend/multi-c8afcbbcd8
dependabot/npm_and_yarn/react-nginx/multi-1c989c8248
dependabot/npm_and_yarn/nginx-nodejs-redis/web/multi-1c989c8248
dependabot/npm_and_yarn/react-rust-postgres/frontend/multi-1c989c8248
dependabot/npm_and_yarn/react-express-mongodb/backend/multi-6d05d0e569
dependabot/npm_and_yarn/react-express-mongodb/frontend/multi-c8afcbbcd8
dependabot/npm_and_yarn/nginx-nodejs-redis/web/multi-c8afcbbcd8
dependabot/npm_and_yarn/react-express-mysql/backend/multi-c8afcbbcd8
dependabot/npm_and_yarn/react-nginx/node-forge-1.3.3
dependabot/npm_and_yarn/angular/angular/multi-1c989c8248
dependabot/npm_and_yarn/react-nginx/rollup-2.79.2
dependabot/npm_and_yarn/react-express-mysql/frontend/node-forge-1.3.3
dependabot/npm_and_yarn/react-express-mongodb/frontend/form-data-3.0.4
dependabot/npm_and_yarn/react-nginx/form-data-3.0.4
dependabot/pip/django/app/django-4.2.27
dependabot/npm_and_yarn/react-rust-postgres/frontend/form-data-3.0.4
dependabot/npm_and_yarn/react-java-mysql/frontend/rollup-2.79.2
dependabot/npm_and_yarn/react-express-mongodb/backend/validator-13.15.22
dependabot/npm_and_yarn/react-java-mysql/frontend/node-forge-1.3.2
dependabot/npm_and_yarn/react-express-mongodb/frontend/node-forge-1.3.2
dependabot/npm_and_yarn/react-rust-postgres/frontend/node-forge-1.3.2
dependabot/npm_and_yarn/angular/angular/angular/common-19.2.16
dependabot/npm_and_yarn/angular/angular/node-forge-1.3.2
dependabot/npm_and_yarn/vuejs/vuejs/node-forge-1.3.2
dependabot/npm_and_yarn/react-java-mysql/frontend/multi-b4d14387f7
dependabot/npm_and_yarn/react-express-mongodb/frontend/multi-b4d14387f7
dependabot/npm_and_yarn/react-java-mysql/frontend/multi-4df209198f
dependabot/npm_and_yarn/react-rust-postgres/frontend/multi-6bc014718a
dependabot/npm_and_yarn/react-express-mongodb/frontend/multi-4df209198f
dependabot/npm_and_yarn/react-rust-postgres/frontend/cross-spawn-7.0.6
dependabot/npm_and_yarn/react-express-mysql/frontend/form-data-3.0.4
dependabot/npm_and_yarn/react-express-mongodb/backend/multi-6bc014718a
dependabot/npm_and_yarn/react-express-mysql/backend/multi-6bc014718a
dependabot/npm_and_yarn/react-express-mysql/backend/form-data-2.5.5
dependabot/npm_and_yarn/react-java-mysql/frontend/form-data-3.0.4
dependabot/npm_and_yarn/vuejs/vuejs/http-proxy-middleware-2.0.9
dependabot/npm_and_yarn/react-rust-postgres/frontend/multi-c9063a5af1
dependabot/npm_and_yarn/react-express-mysql/frontend/multi-b4d14387f7
dependabot/npm_and_yarn/nginx-nodejs-redis/web/multi-6bc014718a
dependabot/pip/nginx-wsgi-flask/flask/gunicorn-23.0.0
dependabot/npm_and_yarn/react-rust-postgres/frontend/multi-4948524209
dependabot/npm_and_yarn/angular/angular/multi-307bfcbed3
dependabot/npm_and_yarn/angular/angular/multi-a3f20be5e1
dependabot/npm_and_yarn/react-express-mongodb/backend/mongoose-6.13.8
dependabot/npm_and_yarn/react-nginx/cross-spawn-7.0.6
dependabot/npm_and_yarn/react-nginx/http-proxy-middleware-2.0.7
dependabot/npm_and_yarn/react-express-mongodb/frontend/rollup-2.79.2
dependabot/npm_and_yarn/react-express-mysql/backend/multi-27a054522e
dependabot/npm_and_yarn/react-nginx/multi-2ff0448eb0
dependabot/npm_and_yarn/angular/angular/multi-2d3aef8690
dependabot/npm_and_yarn/react-express-mysql/backend/braces-3.0.3
dependabot/npm_and_yarn/react-express-mysql/backend/mysql2-3.9.8
dependabot/npm_and_yarn/angular/angular/babel/traverse-7.24.1
dependabot/npm_and_yarn/react-express-mysql/frontend/webpack-dev-middleware-5.3.4
dependabot/npm_and_yarn/react-rust-postgres/frontend/loader-utils-1.4.2
dependabot/npm_and_yarn/react-java-mysql/frontend/webpack-dev-middleware-5.3.4
dependabot/npm_and_yarn/react-express-mongodb/backend/multi-62bd794dc7
dependabot/npm_and_yarn/react-java-mysql/frontend/babel/traverse-7.24.1
dependabot/npm_and_yarn/react-nginx/decode-uri-component-0.2.2
dependabot/npm_and_yarn/angular/angular/json5-1.0.2
dependabot/npm_and_yarn/react-express-mongodb/frontend/babel/traverse-7.24.1
dependabot/npm_and_yarn/react-express-mysql/frontend/loader-utils-1.4.2
dependabot/npm_and_yarn/react-java-mysql/frontend/json5-1.0.2
dependabot/npm_and_yarn/react-java-mysql/frontend/loader-utils-1.4.2
dependabot/npm_and_yarn/react-rust-postgres/frontend/decode-uri-component-0.2.2
dependabot/npm_and_yarn/react-express-mongodb/frontend/loader-utils-1.4.2
dependabot/npm_and_yarn/react-rust-postgres/frontend/babel/traverse-7.24.1
dependabot/npm_and_yarn/vuejs/vuejs/babel/traverse-7.24.1
dependabot/npm_and_yarn/react-nginx/webpack-dev-middleware-5.3.4
dependabot/npm_and_yarn/react-express-mongodb/frontend/decode-uri-component-0.2.2
dependabot/npm_and_yarn/react-nginx/multi-7f0e0a7f19
dependabot/npm_and_yarn/react-nginx/babel/traverse-7.24.1
dependabot/npm_and_yarn/react-nginx/json5-1.0.2
dependabot/npm_and_yarn/react-express-mongodb/frontend/webpack-dev-middleware-5.3.4
dependabot/npm_and_yarn/react-express-mysql/backend/multi-3dbc2df540
dependabot/npm_and_yarn/react-rust-postgres/frontend/webpack-dev-middleware-5.3.4
dependabot/npm_and_yarn/react-nginx/terser-5.30.3
dependabot/npm_and_yarn/react-express-mysql/frontend/json5-1.0.2
dependabot/npm_and_yarn/react-nginx/loader-utils-1.4.2
dependabot/npm_and_yarn/react-express-mysql/frontend/babel/traverse-7.24.1
dependabot/npm_and_yarn/react-rust-postgres/frontend/json5-1.0.2
dependabot/npm_and_yarn/react-rust-postgres/frontend/terser-5.30.3
dependabot/npm_and_yarn/react-express-mongodb/frontend/json5-1.0.2
dependabot/npm_and_yarn/react-rust-postgres/frontend/multi-7f0e0a7f19
dependabot/npm_and_yarn/angular/angular/multi-841ff79eff
dependabot/npm_and_yarn/react-express-mysql/frontend/decode-uri-component-0.2.2
dependabot/npm_and_yarn/react-java-mysql/frontend/decode-uri-component-0.2.2
dependabot/npm_and_yarn/angular/angular/decode-uri-component-0.2.2
dependabot/npm_and_yarn/vuejs/vuejs/json5-1.0.2
dependabot/npm_and_yarn/vuejs/vuejs/loader-utils-1.4.2
dependabot/npm_and_yarn/vuejs/vuejs/webpack-dev-middleware-5.3.4
dependabot/pip/nginx-flask-mysql/backend/flask-2.2.5
dependabot/npm_and_yarn/react-express-mysql/backend/knex-2.4.0
dependabot/npm_and_yarn/react-express-mysql/backend/ansi-regex-5.0.1
dependabot/npm_and_yarn/vuejs/vuejs/terser-5.30.3
dependabot/pip/nginx-wsgi-flask/flask/flask-2.2.5
dependabot/npm_and_yarn/react-express-mongodb/backend/moment-2.30.1
dependabot/maven/sparkjava-mysql/backend/com.google.code.gson-gson-2.8.9
atomist/pin-docker-base-image/flask-redis/dockerfile
atomist/pin-docker-base-image/flask/app/dockerfile
atomist/pin-docker-base-image/nginx-flask-mongo/flask/dockerfile
atomist/pin-docker-base-image/nginx-flask-mysql/backend/dockerfile
atomist/pin-docker-base-image/sparkjava/sparkjava/dockerfile
atomist/pin-docker-base-image/react-java-mysql/backend/dockerfile
atomist/pin-docker-base-image/sparkjava-mysql/backend/dockerfile
atomist/pin-docker-base-image/spring-postgres/backend/dockerfile
atomist/pin-docker-base-image/react-rust-postgres/backend/dockerfile
atomist/pin-docker-base-image/nginx-aspnet-mysql/backend/dockerfile
No results found.
No Label
Milestone
No items
No Milestone
Projects
Clear projects
No project
No Assignees
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: github-starred/awesome-compose#101
Reference in New Issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @lucassus on GitHub (Nov 6, 2023).
This instruction, for some reason, is used in many examples.
The comment
install Docker tools (cli, buildx, compose)in my opinion, is not really helpful.@zozitak commented on GitHub (Nov 15, 2023):
google search first result to "gloursdocker/docker" :
https://registry.hub.docker.com/layers/gloursdocker/docker/latest/images/sha256-a66243282b1165f556ec4a91d749c1ebc81dd28bcfbce653ccf49b01ae3b3fdf
@lucassus commented on GitHub (Nov 15, 2023):
@zozitak thank you. I saw it, but still it's pretty hard to figure out what it exactly does.
@admincodes7 commented on GitHub (Apr 28, 2024):
Copying all the contents of the root directory (/) from the
gloursdocker/dockerimage into the root directory (/) of the current build stage@ehhc commented on GitHub (Apr 30, 2024):
Thanks for your answer. I believe, most of us here understand, what that command literally does. I hopped for a bit more explanation on why the root directory was copied and some elaboration about the effects of this copying…
@admincodes7 commented on GitHub (Apr 30, 2024):
When you build a Docker image, each instruction in the Dockerfile creates a new layer on top of the previous one
gloursdocker/dockerthis is the official docker image which has all the base files required for the applicationso here we are copying the entire contents of the
gloursdocker/dockerto our docker imageas there is already an image of
gloursdocker/dockerwhich is official image of dockerwe need not build the same image again and used the cached one from
gloursdocker/dockeralso coming to the question 'why the root directory was copied'
@antun commented on GitHub (Aug 27, 2024):
I found this thread after asking myself the same question, and like @lucassus , I'm still unclear of what the purpose of the line is?
I understand it copies some files from the
gloursdocker/dockerimage, but those files are not required for the fastapi application. If you remove that line, the fastapi will still build/run successfully.The files it copies - such as docker and docker-compose - are used from the host rather than inside the container, so the purpose of copying them into an image during build time is a mystery. Maybe there's a specific use case, but I can't think of what it might be.
@lucassus commented on GitHub (Aug 30, 2024):
TBH my first thought was that this copy from gloursdocker/docker might be a way to inject some malware. Imagine a situation where someone silently does something nasty with this image.
@AngryVelociraptor commented on GitHub (Oct 20, 2024):
Yes, this is my thought as well. An example repository where lots of devs copy/paste from is an ideal place to slip some malware into.
@glours needs to provide some explanation here. As it stands, I find this deeply suspicious.
@mikesir87 commented on GitHub (Oct 20, 2024):
Thanks all for raising this! I'll be sure to raise this internally and see if we can get this resolved ASAP.
The reasoning for it... many of the examples in this repo were previously updated to support Docker's dev environment feature, which required additional support and tooling inside of the image. Since then, dev environments have been deprecated and the Compsoe-based configuration was removed. But, it appears the Dockerfiles were not updated.
We'll get it fixed. And yes, it is understandable to have security concerns for this. In the meantime, feel free to ignore this line as it should not affect the running of any of the examples in this repo.
@OneCricketeer commented on GitHub (Oct 27, 2024):
I feel like I've seen an "ad" for Dev Environments in Docker Desktop, but I assumed that was another name for
.devcontainer? If not, it would be nice to see that offered as an alternative to whatever this Dev Environment feature was.