patchwire-api (be2bc188)
Published 2026-04-15 12:36:40 +00:00 by ahmedanbar
Installation
docker pull git.ahmedanbar.dev/ahmedanbar/patchwire-api:be2bc188sha256:72f4bdf95cb300b2f26484f94243000599030808e547c23d69d5e6a9e30a5163Image layers
| # debian.sh --arch 'amd64' out/ 'bookworm' '@1775433600' |
| RUN /bin/sh -c apt-get update && apt-get install -y --no-install-recommends ca-certificates libssl3 curl && rm -rf /var/lib/apt/lists/* && groupadd --system --gid 10001 patchwire && useradd --system --uid 10001 --gid 10001 --home-dir /app --shell /sbin/nologin patchwire # buildkit |
| WORKDIR /app |
| COPY /app/target/release/patchwire-api /app/patchwire-api # buildkit |
| COPY /app/target/release/patchwire /app/patchwire # buildkit |
| COPY /usr/local/cargo/bin/sqlx /usr/local/bin/sqlx # buildkit |
| COPY /app/migrations /app/migrations # buildkit |
| USER patchwire |
| EXPOSE map[3001/tcp:{}] |
| HEALTHCHECK &{["CMD-SHELL" "curl -fsS http://127.0.0.1:3001/healthz || exit 1"] "30s" "3s" "10s" "0s" '\x03'} |
| ENTRYPOINT ["/app/patchwire-api"] |