Docker Community Forums

Share and learn in the Docker community.

Dockerfile a one-time start-up

(Xartx) #1

Tell me how to build dockerfile so that a particular file in the container only runs when you first start

(Nathan Le Claire) #2
FROM alpine
COPY ./ /

There’s no reason it should ever get invoked again, only one process (usually) should be running per container.