I'm not quite sure that I understood what's exactly in your service. For example if it's something like webpack/gulp website you build and then use that built data as a part of a nginx container I don't see any problem with that.
I also have in my microservices docker compose file for one project, one service which I execute with empty command, because I have to built and then use some commands through it via docker-compose run
That's exactly it. It is a container that only compiles the code via webpack/grunt.
We're a place where coders share, stay up-to-date and grow their careers.
We strive for transparency and don't collect excess data.