diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..11fa4be --- /dev/null +++ b/Dockerfile @@ -0,0 +1,19 @@ +FROM python:3.11 + +WORKDIR /usr/src/app + +COPY ./pyproject.toml . +COPY ./src/ . + +RUN sed /^StrictHostKeyChecking/d /etc/ssh/ssh_config; \ +echo StrictHostKeyChecking no >> /etc/ssh/ssh_config + +RUN --mount=type=cache,target=/root/.cache \ + --mount=type=ssh,required=true \ + pip install . + +#CMD [ "python", "./your-daemon-or-script.py" ] + +# make sure to install sudo apt install docker-buildx +# make sure to set IdentityFile e.g. /home/pstruebi/.ssh/id_ed25519 in ~/.ssh/config +# build with docker build --ssh default . \ No newline at end of file diff --git a/docker/docker-compose.yaml b/docker-compose.yaml similarity index 100% rename from docker/docker-compose.yaml rename to docker-compose.yaml diff --git a/docker/Dockerfile b/docker/Dockerfile deleted file mode 100644 index e69de29..0000000