# Resolve and review a Python base digest before building; never pass a tag here. ARG BASE_IMAGE FROM ${BASE_IMAGE} RUN mkdir -p /app /scratch \ && touch /app/rootfs-check \ && chown 10001:10001 /scratch /app/rootfs-check \ && chmod 0700 /scratch && chmod 0600 /app/rootfs-check COPY job.py /app/job.py # ECS bind-mount initialization copies this path's ownership from the image. VOLUME ["/scratch"] USER 10001:10001 WORKDIR /scratch ENTRYPOINT ["python", "/app/job.py"]