wip - nicegui

This commit is contained in:
Stephan Lüscher 2024-05-06 15:16:52 +00:00
parent c3ed45a21b
commit 85b0b3fdc5
No known key found for this signature in database
GPG key ID: 445779060FF3D3CF
39 changed files with 2748 additions and 896 deletions

25
anvil/Containerfile Normal file
View file

@ -0,0 +1,25 @@
# Source Image
FROM docker.io/library/python:3.11-alpine3.19
# Environment vars
ENV PIPX_BIN_DIR="/usr/local/py-utils"
ENV PIPX_HOME="/usr/local/pipx"
ENV POETRY_VERSION="1.8.2"
ENV POETRY_VIRTUALENVS_CREATE="true"
ENV POETRY_VIRTUALENVS_IN_PROJECT="true"
ENV PATH="${PATH}:${PIPX_BIN_DIR}:${PIPX_HOME}/venvs/poetry/bin:/anvil/.venv/bin"
# Install system dependencies
RUN apk --no-cache add pipx openssh bash
RUN pipx install poetry==${POETRY_VERSION}
# Install ansible and dependencies
WORKDIR /anvil
COPY . .
RUN poetry install --no-root
CMD poetry env use .venv/bin/python && \
chmod +x entrypoint.sh
RUN ansible-galaxy collection install -r ./ansible/collections/requirements.yml
# Set entrypoint
ENTRYPOINT [ "/anvil/entrypoint.sh" ]