1# The ECS half of the dev-stress stack. The stress suite edits this file IN
2# PLACE while `alchemy dev` runs (the BAKED_MARKER line), edits index.html
3# next to it, and changes the service's env prop — three different ways a
4# "docker file" changes, each of which must hot-reload the running task.
5FROM busybox:stable
6COPY index.html /www/index.html
7ENV BAKED_MARKER=dockerfile-v1
8# Write the baked marker AND the runtime env marker at startup, then serve.
9# /baked.txt proves an image rebuild landed; /env.txt proves a task restart
10# picked up new task-definition env (no rebuild involved).
11CMD ["sh", "-c", "echo -n \"$BAKED_MARKER\" > /www/baked.txt && echo -n \"$STRESS_ENV\" > /www/env.txt && exec httpd -f -p 8796 -h /www"]