-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
34 lines (26 loc) · 822 Bytes
/
Dockerfile
File metadata and controls
34 lines (26 loc) · 822 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
25
26
27
28
29
30
31
32
33
34
# Use an amd64-based Python image
FROM python:3.9-slim
# Set working directory
WORKDIR /app
# Install dependencies and required tools
RUN apt-get update && apt-get install -y \
wget \
unzip \
libc6 \
&& rm -rf /var/lib/apt/lists/*
# Install Amass v4.2.0
RUN wget https://github.com/OWASP/Amass/releases/download/v3.19.2/amass_linux_amd64.zip \
&& unzip amass_linux_amd64.zip \
&& mv amass_linux_amd64/amass /usr/local/bin/amass \
&& rm -rf amass_linux_amd64.zip amass_linux_amd64
# Copy application requirements and install Python dependencies
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
# Copy application code
COPY app.py .
# Expose the port
EXPOSE 8002
# Set environment variables
ENV FLASK_ENV=production
# Run the application
CMD ["python", "app.py"]