docker-laravel-stack/docker/Dockerfile.watch

26 lines
650 B
Docker
Raw Normal View History

2025-10-31 11:29:14 -04:00
# =========================================================
# Watch container — monitors Laravel app changes
# =========================================================
FROM alpine:latest
# --- Proxy args (if required) ---
ARG HTTP_PROXY
ARG HTTPS_PROXY
ENV http_proxy=${HTTP_PROXY}
ENV https_proxy=${HTTPS_PROXY}
ENV HTTP_PROXY=${HTTP_PROXY}
ENV HTTPS_PROXY=${HTTPS_PROXY}
ENV NO_PROXY=localhost,127.0.0.1
# --- Install dependencies ---
RUN apk update && apk add --no-cache inotify-tools docker-cli bash
WORKDIR /app
# --- Copy the watcher script ---
COPY watch.sh /watch.sh
RUN chmod +x /watch.sh
# --- Default command ---
CMD ["/watch.sh"]