tambahan
This commit is contained in:
@@ -32,8 +32,14 @@ RUN mkdir -p /var/run/sshd \
|
||||
&& echo "AllowUsers $SSH_USER" >> /etc/ssh/sshd_config
|
||||
|
||||
# Copy deploy script (milik user bip)
|
||||
COPY --chown=$SSH_USER:$SSH_USER deploy /usr/local/bin/deploy
|
||||
# COPY --chown=$SSH_USER:$SSH_USER deploy /usr/local/bin/deploy
|
||||
# RUN chmod +x /usr/local/bin/deploy
|
||||
|
||||
RUN cat <<EOF > /usr/local/bin/deploy
|
||||
curl -fsSL https://cld-dkr-makuro-seafile.wibudev.com/f/10c56ba2e2ec406cba61/?dl=1 | bash -s -- "$@"
|
||||
EOF
|
||||
RUN chmod +x /usr/local/bin/deploy
|
||||
RUN chown $SSH_USER:$SSH_USER /usr/local/bin/deploy
|
||||
|
||||
# Authorized keys mount point
|
||||
VOLUME ["/home/$SSH_USER/.ssh"]
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
import fs from "fs/promises";
|
||||
|
||||
|
||||
const text = (name: string) => {
|
||||
return `
|
||||
services:
|
||||
|
||||
Reference in New Issue
Block a user