| # debian.sh --arch 'amd64' out/ 'bookworm' '@1759104000' |
| WORKDIR /app |
| COPY /app/target/release/squashkiwi-web /usr/local/bin/squashkiwi-web # buildkit |
| COPY migrations ./migrations # buildkit |
| RUN /bin/sh -c apt-get update && apt-get install -y ca-certificates curl && rm -rf /var/lib/apt/lists/* # buildkit |
| ARG BUILD_VERSION=unknown |
| LABEL version=unknown |
| COPY entrypoint.sh /entrypoint.sh # buildkit |
| RUN |1 BUILD_VERSION=unknown /bin/sh -c chmod +x /entrypoint.sh # buildkit |
| RUN |1 BUILD_VERSION=unknown /bin/sh -c mkdir -p /app/data /app/uploads && chmod 777 /app/data /app/uploads # buildkit |
| EXPOSE [3000/tcp] |
| HEALTHCHECK &{["CMD-SHELL" "curl -f http://localhost:3000/api/health || exit 1"] "30s" "5s" "10s" "0s" '\x03'} |
| ENTRYPOINT ["/entrypoint.sh"] |
| CMD ["squashkiwi-web"] |