| # debian.sh --arch 'amd64' out/ 'bookworm' '@1793827419' |
| ARG APP_VERSION=0.0.86 |
| LABEL org.opencontainers.image.title=saturate org.opencontainers.image.version=0.0.86 |
| RUN |1 APP_VERSION=0.0.86 /bin/sh -c apt-get update && apt-get install -y --no-install-recommends ca-certificates curl && rm -rf /var/lib/apt/lists/* # buildkit |
| RUN |1 APP_VERSION=0.0.86 /bin/sh -c echo "* soft nofile 65535" >> /etc/security/limits.conf && echo "* hard nofile 65535" >> /etc/security/limits.conf && echo "root soft nofile 65535" >> /etc/security/limits.conf && echo "root hard nofile 65535" >> /etc/security/limits.conf # buildkit |
| RUN |1 APP_VERSION=0.0.86 /bin/sh -c groupadd -r saturate && useradd -r -g saturate -d /app -s /bin/bash saturate # buildkit |
| WORKDIR /app |
| RUN |1 APP_VERSION=0.0.86 /bin/sh -c mkdir -p /app/scenarios /app/results /app/static && chown -R saturate:saturate /app # buildkit |
| COPY /app/target/release/saturate /app/saturate # buildkit |
| COPY --chown=saturate:saturate static /app/static # buildkit |
| COPY docker/docker-entrypoint.sh /app/docker-entrypoint.sh # buildkit |
| RUN |1 APP_VERSION=0.0.86 /bin/sh -c chmod +x /app/docker-entrypoint.sh # buildkit |
| VOLUME [/app/scenarios /app/results] |
| EXPOSE [3000/tcp 8080/tcp] |
| ENV PORT=3000 HOST=0.0.0.0 RUST_LOG=info |
| USER saturate |
| ENTRYPOINT ["/app/docker-entrypoint.sh"] |
| CMD ["/app/saturate"] |