一键导入
docker
Use for Dockerfile and container runtime changes in telegram-home-bot: Raspberry Pi/Linux runtime, fping/iproute2, Gradle bootJar, network mode, ports, logs.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Use for Dockerfile and container runtime changes in telegram-home-bot: Raspberry Pi/Linux runtime, fping/iproute2, Gradle bootJar, network mode, ports, logs.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Use when adding or changing Docker Compose for telegram-home-bot: app service, .env, persistent H2 data, SonarQube profile, bridge/host networking.
Use when changing database schema, writing Flyway migrations, reviewing SQL migrations, or working with H2 and Spring Boot database startup.
Use for Hibernate/JPA/Flyway work in telegram-home-bot: H2 schema migrations, Kotlin entities, repositories, lazy relations, sequences, entity equality.
Use for Kotlin code in telegram-home-bot: JVM 17, Spring Boot Kotlin, Gradle Groovy DSL, src/main/java Kotlin layout, null-safety, constructor DI, ktlint.
Use when changing Docker, Docker Compose, runtime configuration, Raspberry Pi deployment, Linux service setup, or lightweight production deployment.
Use for Spring Boot work in telegram-home-bot: configuration, scheduling, security, Thymeleaf, Telegram bot, OpenWeather, actuator, events, testing.
| name | docker |
| description | Use for Dockerfile and container runtime changes in telegram-home-bot: Raspberry Pi/Linux runtime, fping/iproute2, Gradle bootJar, network mode, ports, logs. |
This project has a single Dockerfile for building a container image. The application is designed to run on Raspberry Pi (ARM) and Linux.
FROM openjdk:11-jre-slim-buster
ENV SERVER_PORT=8080
EXPOSE ${SERVER_PORT}
WORKDIR application
COPY build/libs/*.jar app.jar
RUN apt-get update && \
apt-get -y install fping && \
apt-get -y install iproute2 && \
apt-get clean
ENTRYPOINT ["java", "-jar","./app.jar"]
# Build JAR first
./gradlew clean bootJar
# Build Docker image
docker build -t thb-image .
# Run container (bridge network — host network scanning works)
docker run -d -p 80:8080 --network=bridge --name=thb thb-image
# Start/stop
docker start thb
docker stop thb
# View logs
docker logs -f thb
The image installs:
ip -j n show (ARP table queries)--network=bridge for container-to-host network visibility--network=host) can also be used for full LAN accessSERVER_PORT=8080)-p 80:8080 in examplesWORKDIR from application without updating COPY and ENTRYPOINTapt-get clean — it reduces image size*.jar is intentional