-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdockerfile
More file actions
24 lines (19 loc) · 710 Bytes
/
dockerfile
File metadata and controls
24 lines (19 loc) · 710 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# ============================================================
# Dockerfile genérico para Link-Chat
# ============================================================
# Imagen base: Python 3.10 slim (ligera y suficiente)
FROM python:3.10-slim
# Instalar herramientas útiles para red y depuración
RUN apt-get update && apt-get install -y \
iproute2 \
ethtool \
tcpdump \
&& rm -rf /var/lib/apt/lists/*
# Establecer el directorio de trabajo dentro del contenedor
WORKDIR /app
# Copiar todo el código del proyecto al contenedor
COPY . /app
# Dar permisos de lectura/ejecución a todos los archivos
RUN chmod -R a+rX /app
# Comando por defecto al iniciar el contenedor
CMD ["python3", "main.py"]