I got a very basic Dockerfile:
FROM php:8.1-fpm-alpine
WORKDIR /app
COPY . .
EXPOSE 80
RUN nginx
I even tried
ENTRYPOINT [ "nginx" ]
but then the container is continuously restarting instead of starting.
But when I start the container (having RUN nginx in place) and I attach a console to the container and run nginx, the process starts.