From 7ff9b75c88054f0ed03235a9f473414cac8a13d0 Mon Sep 17 00:00:00 2001 From: docker Date: Sat, 18 Mar 2023 14:56:09 -0500 Subject: [PATCH] fixed dev container --- .devcontainer/devcontainer.json | 7 +++---- Dockerfile.dev | 15 +++++++++++++++ 2 files changed, 18 insertions(+), 4 deletions(-) create mode 100755 Dockerfile.dev diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index b23b1d0..f4b3a6c 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -19,9 +19,7 @@ // Features to add to the dev container. More info: https://containers.dev/features. "features": { - "ghcr.io/devcontainers/features/github-cli:1": { - "version": "latest" - } + "ghcr.io/devcontainers/features/github-cli:1": {} }, // Use 'forwardPorts' to make a list of ports inside the container available locally. @@ -36,7 +34,8 @@ // Add the IDs of extensions you want installed when the container is created. "extensions": [ "ms-python.python", - "ms-toolsai.jupyter" + "ms-toolsai.jupyter", + "mhutchie.git-graph" ] } } diff --git a/Dockerfile.dev b/Dockerfile.dev new file mode 100755 index 0000000..a88e76b --- /dev/null +++ b/Dockerfile.dev @@ -0,0 +1,15 @@ +FROM python:latest + +ENV CONF=/conf + +RUN mkdir $CONF + +# COPY ./system_packages.txt ${CONF} +# RUN find $CONF -name system_packages.txt -type f -not -empty -exec cat {} \; -exec echo -n " " \; | tr '\n' ' ' | xargs -t --no-run-if-empty apk add + +COPY ./requirements.txt ${CONF} +RUN find $CONF -name requirements.txt -type f -not -empty -exec pip3 install --upgrade -r {} \; + +RUN pip install git+https://github.com/AppDaemon/appdaemon@dev + +# CMD [ "bash" ] \ No newline at end of file