mirror of
https://github.com/AsgardEternal/Ubuntu-Ansible-Setup.git
synced 2024-09-28 16:24:23 -05:00
build: add docker entry script
This commit is contained in:
parent
07b54ba8ee
commit
b0b4cc0271
@ -42,4 +42,4 @@ __EOR__
|
|||||||
COPY --from=build /app/.venv ./.venv
|
COPY --from=build /app/.venv ./.venv
|
||||||
COPY . .
|
COPY . .
|
||||||
ENV PATH="${PATH}:/app/.venv/bin"
|
ENV PATH="${PATH}:/app/.venv/bin"
|
||||||
ENTRYPOINT [ "/bin/sh" ]
|
ENTRYPOINT [ "./scripts/docker-entry.sh" ]
|
||||||
|
5
scripts/docker-entry.sh
Executable file
5
scripts/docker-entry.sh
Executable 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"
|
Loading…
Reference in New Issue
Block a user