patchwire-api (4e76852a)
Published 2026-04-16 08:04:41 +00:00 by ahmedanbar
Installation
docker pull git.ahmedanbar.dev/ahmedanbar/patchwire-api:4e76852asha256:7743b25a133efcf6632214a68b7b85f2e77d3f0da891c0c860aac506d72c5ff5Image 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"] |