-
Notifications
You must be signed in to change notification settings - Fork 90
Expand file tree
/
Copy pathDockerfile
More file actions
36 lines (28 loc) · 998 Bytes
/
Copy pathDockerfile
File metadata and controls
36 lines (28 loc) · 998 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
35
36
# Use official Python runtime as a parent image
FROM python:3.11-slim
# Set environment variables
ENV PYTHONDONTWRITEBYTECODE=1
ENV PYTHONUNBUFFERED=1
# Install system dependencies (Nmap is required for scanning)
RUN apt-get update && apt-get install -y \
nmap \
git \
&& rm -rf /var/lib/apt/lists/* \
&& mkdir -p /root/.local/share \
&& mkdir -p /root/.sicat
# Set the working directory in the container
WORKDIR /app
# Copy the current directory contents into the container at /app
COPY . /app
COPY config.json /root/.sicat/config.json
# Install the application
# This uses setup.py to install dependencies and the 'sicat' command
RUN pip install --no-cache-dir .
# Expose port 5000 for the Web Interface
EXPOSE 5000
# Define a volume to persist configuration (e.g., gh_token in config.json)
VOLUME ["/root/.sicat"]
# Set the entrypoint to the sicat command
ENTRYPOINT ["sicat"]
# Default argument (can be overridden)
CMD ["--help"]