first commit
This commit is contained in:
25
Dockerfile
Normal file
25
Dockerfile
Normal file
@@ -0,0 +1,25 @@
|
||||
FROM python:3.11-slim
|
||||
|
||||
# Install git
|
||||
RUN apt-get update && apt-get install -y git && rm -rf /var/lib/apt/lists/*
|
||||
|
||||
# Set working directory
|
||||
WORKDIR /app
|
||||
|
||||
# Copy requirements
|
||||
COPY requirements.txt .
|
||||
|
||||
# Install dependencies
|
||||
RUN pip install --no-cache-dir -r requirements.txt
|
||||
|
||||
# Copy application code
|
||||
COPY src/ ./src/
|
||||
|
||||
# Create data directory for myorg repo
|
||||
RUN mkdir -p /data/myorg
|
||||
|
||||
# Expose web interface port
|
||||
EXPOSE 8000
|
||||
|
||||
# Run application
|
||||
CMD ["python", "-m", "src.main"]
|
||||
Reference in New Issue
Block a user