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