26 lines
650 B
Docker
Executable file
26 lines
650 B
Docker
Executable file
# =========================================================
|
|
# 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"]
|