- Newest
- Most votes
- Most comments
If you're building your App Runner service from a repository, you can specify a Dockerfile to build your container image. In this Dockerfile, you can use the RUN command to execute commands during the build process. This is a good place to run setup tasks that only need to be run once.
If you need to run commands every time your container starts, you could use an entrypoint script in your Docker container. This is a script that is executed every time your container is started, and you can use it to run setup tasks. In the Dockerfile, you can set this script as the entrypoint using the ENTRYPOINT command.
When you configure your service in App Runner, you have the option to specify a start command. This command is run every time a new instance of your service is started. Depending on your application, you might be able to use this to run setup tasks.
Relevant content
- asked a year ago
- asked 6 months ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated a month ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated 4 months ago