Hugoifier
| 48176db… | ragelink | 1 | # Use an official Python runtime as a parent image |
| d7e63ec… | lmata | 2 | FROM python:3.11.4-slim |
| 48176db… | ragelink | 3 | |
| 48176db… | ragelink | 4 | # Set the working directory in the container |
| 48176db… | ragelink | 5 | WORKDIR /app |
| 48176db… | ragelink | 6 | |
| 48176db… | ragelink | 7 | # Copy the requirements file into the container |
| 48176db… | ragelink | 8 | COPY requirements.txt ./ |
| 48176db… | ragelink | 9 | |
| 91515c0… | lmata | 10 | # Install package and dependencies |
| 91515c0… | lmata | 11 | COPY pyproject.toml ./ |
| 91515c0… | lmata | 12 | RUN pip install --no-cache-dir -e . |
| 48176db… | ragelink | 13 | |
| 48176db… | ragelink | 14 | # Copy the rest of the application code into the container |
| 48176db… | ragelink | 15 | COPY . . |
| 48176db… | ragelink | 16 | |
| 91515c0… | lmata | 17 | CMD ["hugoifier"] |