build: add docker entry script

This commit is contained in:
Price Hiller 2023-01-26 00:58:17 -06:00
parent 07b54ba8ee
commit b0b4cc0271
2 changed files with 6 additions and 1 deletions

View File

@ -42,4 +42,4 @@ __EOR__
COPY --from=build /app/.venv ./.venv
COPY . .
ENV PATH="${PATH}:/app/.venv/bin"
ENTRYPOINT [ "/bin/sh" ]
ENTRYPOINT [ "./scripts/docker-entry.sh" ]

5
scripts/docker-entry.sh Executable file
View File

@ -0,0 +1,5 @@
#!/bin/sh
mkdir -p "${HOME}/.ssh"
touch "${HOME}/.ssh/authorized_keys" >/dev/null 2>&1 || true
chmod 0600 "${HOME}/.ssh/authorized_keys"