Update files

This commit is contained in:
Astra 2026-03-09 22:00:10 +00:00
parent 099191529c
commit 467e57ea8d
2 changed files with 2 additions and 2 deletions

View file

@ -23,7 +23,7 @@ RUN apk add --no-cache ca-certificates
WORKDIR /opt WORKDIR /opt
# Copy binary into a standard location # Copy binary into a standard location
COPY --from=builder /bin/telegram-approval-join /usr/local/bin/telegram-approval-join COPY --from=builder /bin/telegram-join-approval-nuzzles /usr/local/bin/telegram-approval-join
# Create a non-root user and group with specific UID:GID and set ownership # Create a non-root user and group with specific UID:GID and set ownership
RUN addgroup -g 65532 app && \ RUN addgroup -g 65532 app && \

View file

@ -36,7 +36,7 @@ rm -rf "$ROOT_DIR/cmd" "$ROOT_DIR/internal" "$ROOT_DIR/Dockerfile" "$ROOT_DIR/go
# Copy source files, excluding .git and keeping patches/ and scripts/ # Copy source files, excluding .git and keeping patches/ and scripts/
rsync -a --stats --exclude='.git' --exclude='internal/telegram-approval-join' \ rsync -a --stats --exclude='.git' --exclude='internal/telegram-approval-join' \
"$SUBMODULE_DIR/" "$ROOT_DIR/" \ "$SUBMODULE_DIR/" "$ROOT_DIR/" \
--exclude='patches' --exclude='scripts' --exclude='README.md' --exclude='patches' --exclude='scripts' --exclude='README.md' --exclude='Dockerfile'
# Remove scripts/ from .gitignore so we can track our sync script # Remove scripts/ from .gitignore so we can track our sync script
sed -i '/^scripts\/$/d' "$ROOT_DIR/.gitignore" sed -i '/^scripts\/$/d' "$ROOT_DIR/.gitignore"