-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathDockerfile
More file actions
34 lines (25 loc) · 811 Bytes
/
Copy pathDockerfile
File metadata and controls
34 lines (25 loc) · 811 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
FROM python:3.11-slim
# Metadata
LABEL maintainer="THIS Cyber Security" \
description="NovaBak — VM Backup Enterprise"
# System dependencies (for pysmb, cryptography, etc.)
RUN apt-get update && apt-get install -y --no-install-recommends \
gcc \
libffi-dev \
libssl-dev \
&& rm -rf /var/lib/apt/lists/*
WORKDIR /app
# Install Python dependencies first (better layer caching)
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
# Copy application code
COPY . .
# Create required directories
RUN mkdir -p data bin/ovftool static
# The data directory will be mounted as a volume
VOLUME ["/app/data"]
# Expose Web UI port
EXPOSE 8000
# Default: run web service
# (Worker daemon runs as a separate container via docker-compose)
CMD ["python", "-u", "main.py"]