FROM ubuntu:22.04 | |
ENV DEBIAN_FRONTEND=noninteractive | |
# Install prerequisites | |
RUN apt-get update && apt-get install -y \ | |
curl \ | |
iproute2 \ | |
ca-certificates \ | |
gnupg \ | |
lsb-release \ | |
&& rm -rf /var/lib/apt/lists/* | |
# Download the installer but don't run it yet | |
RUN curl -sSL https://dokploy.com/install.sh -o /install-dokploy.sh && \ | |
chmod +x /install-dokploy.sh | |
EXPOSE 3000 | |
# Command that will start Docker and then run the installer | |
CMD ["bash", "-c", "dockerd & while ! docker info >/dev/null 2>&1; do sleep 1; done && /install-dokploy.sh && tail -f /dev/null"] |