| # debian.sh --arch 'amd64' out/ 'bookworm' '@1771804800' |
| RUN /bin/sh -c apt-get update && apt-get install -y --no-install-recommends ca-certificates && rm -rf /var/lib/apt/lists/* # buildkit |
| RUN /bin/sh -c useradd -r -s /usr/sbin/nologin commenda # buildkit |
| WORKDIR /app |
| COPY /build/target/release/commenda /app/commenda # buildkit |
| RUN /bin/sh -c apt-get update && apt-get install -y --no-install-recommends gosu && rm -rf /var/lib/apt/lists/* # buildkit |
| COPY entrypoint.sh /app/entrypoint.sh # buildkit |
| RUN /bin/sh -c chmod +x /app/entrypoint.sh # buildkit |
| RUN /bin/sh -c mkdir -p /app/data # buildkit |
| VOLUME [/app/data] |
| ENV RUST_LOG=info |
| EXPOSE [3000/tcp] |
| ENTRYPOINT ["/app/entrypoint.sh"] |
| CMD ["--config" "/app/config.toml" "--database-url" "sqlite:///app/data/commenda.db" "serve" "--addr" "0.0.0.0:3000"] |