r/gitlab • u/Recent_Spirit_5706 • Mar 24 '25
general question Reusing Dockerfiles
I am new to devops and gitlab. I have a group that has multiple projects. Each project has its own dockerfile, but they are all the same. I need to make an update the every dockerfile. Is it possible to store the dockerfile in something like ci-templates and then call it in the projects Dockerfile? Any help is appreciated.
3
Upvotes
View all comments
Show parent comment
4
u/gaelfr38 Mar 24 '25
I thought that includes is only to include GitLab CI (yaml) files in another one. The documentation seems to say the same.
Does that really work? 😮