mirror of
https://github.com/eduardogsilva/routerfleet.git
synced 2025-08-03 09:44:31 +02:00
25 lines
474 B
Text
25 lines
474 B
Text
|
# Usar uma imagem base do Python
|
||
|
FROM python:3.10
|
||
|
|
||
|
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"]
|