add Containerfile for pbrk deployments

This commit is contained in:
2024-07-27 15:15:35 +02:00
parent 5b02942c95
commit 09da459a53

23
src/Containerfile Normal file
View File

@@ -0,0 +1,23 @@
FROM fedora-minimal:latest
RUN microdnf install -y python3-pip && pip install uv
WORKDIR /app
COPY requirements.txt .
RUN uv venv /app/venv && \
source /app/venv/bin/activate && \
uv pip install -r requirements.txt
# Copy data for add-on
COPY database_empty.sqlite data/database.sqlite
COPY rund.sh .
COPY run.py .
COPY main.py .
COPY api.py .
COPY moj_licznik.py .
COPY log_config.py .
RUN chmod a+x rund.sh
CMD [ "/app/rund.sh" ]