patchwire-api (3c077426)
Published 2026-04-16 07:20:45 +00:00 by ahmedanbar
Installation
docker pull git.ahmedanbar.dev/ahmedanbar/patchwire-api:3c077426sha256:6e0825b60dea4dff1810dd4f89ce2e38d14a56db6aa3e31fb0087257b1c2365dImage 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"] |