-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
38 lines (32 loc) · 1.01 KB
/
Dockerfile
File metadata and controls
38 lines (32 loc) · 1.01 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
FROM python:3.11-slim
WORKDIR /kintun
ENV DEBIAN_FRONTEND=noninteractive
# Instalar dependencias necesarias del sistema
RUN apt update && apt install -y --no-install-recommends \
shelldap \
expect \
rpcbind \
smbclient \
dnsutils \
ntp \
netcat-traditional \
redis-tools \
postgresql-client \
curl \
nmap \
wget \
gnupg \
&& rm -rf /var/lib/apt/lists/*
# Add MongoDB repository and install mongosh
RUN wget -qO - https://www.mongodb.org/static/pgp/server-6.0.asc | apt-key add - \
&& echo "deb [ arch=amd64,arm64 ] https://repo.mongodb.org/apt/ubuntu focal/mongodb-org/6.0 multiverse" | tee /etc/apt/sources.list.d/mongodb-org-6.0.list \
&& apt update \
&& apt install -y mongodb-mongosh \
&& rm -rf /var/lib/apt/lists/*
# Instalar dependencias Python
COPY requirements.txt requirements.txt
RUN pip install --no-cache-dir -r requirements.txt
# Copiar el código fuente
COPY . .
# Comando por defecto
CMD [ "python3", "-m", "flask", "run", "--host=0.0.0.0" ]