| # debian.sh --arch 'amd64' out/ 'bookworm' '@1783900800' |
| RUN /bin/sh -c apt-get update && apt-get install -y --no-install-recommends ca-certificates curl && rm -rf /var/lib/apt/lists/* # buildkit |
| WORKDIR /app |
| COPY /app/target/release/vibepfp /app/vibepfp # buildkit |
| COPY /app/templates /app/templates # buildkit |
| COPY /app/static /app/static # buildkit |
| RUN /bin/sh -c mkdir -p /app/data /app/static/uploads # buildkit |
| ENV BIND_ADDR=0.0.0.0:8080 |
| ENV DATABASE_URL=sqlite:/app/data/vibepfp.db?mode=rwc |
| ENV UPLOAD_DIR=/app/static/uploads |
| ENV AI_BASE_URL=https://image.pollinations.ai/prompt |
| ENV RUST_LOG=info |
| EXPOSE [8080/tcp] |
| HEALTHCHECK {Test:[CMD-SHELL curl -fsS http://localhost:8080/ || exit 1] Interval:30s Timeout:5s StartPeriod:10s StartInterval:0s Retries:3} |
| CMD ["/app/vibepfp"] |