20 lines
502 B
Docker
20 lines
502 B
Docker
ARG BASE_IMAGE=php:8.2-cli-bookworm
|
|
FROM ${BASE_IMAGE}
|
|
|
|
WORKDIR /opt/truckwash-edge-agent
|
|
|
|
RUN set -eux; \
|
|
apt-get update; \
|
|
apt-get install -y --no-install-recommends \
|
|
curl \
|
|
ca-certificates \
|
|
libcurl4-openssl-dev \
|
|
libsqlite3-dev; \
|
|
docker-php-ext-install curl sqlite3; \
|
|
rm -rf /var/lib/apt/lists/*
|
|
|
|
COPY agent.php /opt/truckwash-edge-agent/agent.php
|
|
|
|
ENTRYPOINT ["php", "/opt/truckwash-edge-agent/agent.php"]
|
|
CMD ["--config", "/config/config.json"]
|