This commit is contained in:
bipproduction
2025-10-06 16:54:19 +08:00
parent 3f1e9b7473
commit f700d69b31
3 changed files with 9 additions and 4 deletions

View File

@@ -39,7 +39,7 @@ Commands:
compose Generate compose.yml from name
docker-file Generate Dockerfile
frp Show frp proxy list
app-init Generate app-init.ts
app-create Generate app with Elysia and React
Options:
--env Path ke file .env (default: .env)
@@ -55,7 +55,7 @@ Examples:
g3n compose <name>
g3n docker-file
g3n frp
g3n app-init
g3n app-create <name>
Version: ${version}
`;

View File

@@ -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"]

View File

@@ -1,6 +1,5 @@
import fs from "fs/promises";
const text = (name: string) => {
return `
services: