tasko/backend/Dockerfile
dvirlabs 42f0651147
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
Build and push app to harbor
2026-03-22 10:02:25 +02:00

26 lines
442 B
Docker

FROM python:3.11-slim
WORKDIR /app
# Install system dependencies
RUN apt-get update && \
apt-get install -y --no-install-recommends \
postgresql-client \
&& rm -rf /var/lib/apt/lists/*
# Copy requirements file
COPY requirements.txt .
# Install Python dependencies
RUN pip install --no-cache-dir -r requirements.txt
# Copy application code
COPY . .
# Expose port
EXPOSE 8000
# Run the application
CMD ["python", "main.py"]