eduardogsilva.routerfleet/Dockerfile
2025-02-03 12:50:54 -03:00

24 lines
No EOL
446 B
Docker

FROM python:3.12-slim
WORKDIR /app
RUN apt-get update && apt-get install -y \
net-tools \
inetutils-ping \
inetutils-traceroute \
nano \
vim-nox \
&& rm -rf /var/lib/apt/lists/*
COPY requirements.txt /app/
RUN pip install --no-cache-dir -r requirements.txt
COPY . /app/
RUN chmod +x /app/init.sh
RUN chmod +x /app/entrypoint.sh
ARG SERVER_ADDRESS
ARG DEBUG_MODE
ENTRYPOINT ["/app/entrypoint.sh"]
CMD ["/app/init.sh"]