slimtoolkit / slimtoolkit/slim
Add entrypoint script to dslim build
Nobody has claimed this yet.
- Dominant language
- Go
- Stars
- 23.4k
- Forks
- 840
- PR merge metrics
- No merged PRs in 30d
Description
In my image I used an entrypoint that insert env variables to vue project, in Dockerfile:
COPY ./client/entrypoint.sh /usr/share/nginx/entrypoint.sh
RUN chmod +x /usr/share/nginx/entrypoint.sh
ENTRYPOINT ["sh", "/usr/share/nginx/entrypoint.sh"]
and the docker command is:
docker run -it --rm -v /var/run/docker.sock:/var/run/docker.sock dslim/docker-slim build --http-probe=false --include-path=/usr/src/app --include-path=/usr/local/lib/node_modules/npm/node_modules my_image_name
I'm not sure where I supose to add flag for entrypoint and which one
Thanks for any help :D
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the dslim build CLI and the Dockerfile entrypoint.sh example in the issue. Check whether the command already has an entrypoint-related option, then reproduce the supplied docker run command; done should clarify the supported flag or define the needed behavior.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- docker, shell
- Domain
- cli, devops
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100