mirror of
https://github.com/coleam00/ottomator-agents.git
synced 2026-12-04 05:08:22 +00:00
19 lines
436 B
Docker
19 lines
436 B
Docker
FROM python:3.11-slim
|
|
|
|
WORKDIR /app
|
|
|
|
RUN apt-get update && apt-get install -y \
|
|
git \
|
|
&& rm -rf /var/lib/apt/lists/*
|
|
|
|
# Copy requirements first to leverage Docker cache
|
|
COPY requirements.txt .
|
|
RUN pip install --no-cache-dir -r requirements.txt
|
|
|
|
# Create a non-root user and switch to it
|
|
RUN useradd -m appuser && chown -R appuser:appuser /app
|
|
USER appuser
|
|
|
|
# Expose the default port that will be used by most agents
|
|
EXPOSE 8001
|