-
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathDockerfile
More file actions
34 lines (25 loc) · 778 Bytes
/
Copy pathDockerfile
File metadata and controls
34 lines (25 loc) · 778 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
WORKDIR /app
# Install system dependencies
RUN apt-get update && apt-get install -y \
git \
docker.io \
&& rm -rf /var/lib/apt/lists/*
# Configure Git to handle directory ownership issues
RUN git config --global --add safe.directory '*' && \
git config --global user.name "Hub Helper" && \
git config --global user.email "hub-helper@automation.local"
# Copy requirements and install Python dependencies
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
# Copy application code
COPY . .
# Create directory for projects (will be mounted)
RUN mkdir -p /projects
# Expose port
EXPOSE 5414
# Environment variables
ENV FLASK_APP=app.py
ENV FLASK_ENV=production
# Run the application
CMD ["python", "app.py"]