FaceVerifSDK / Dockerfile
kadabengaran's picture
Update Dockerfile
522861a verified
FROM milvusdb/milvus:v2.5.6 AS milvus_src
FROM regulaforensics/face-api:latest
USER root
RUN apt-get update && apt-get install -y --no-install-recommends \
ca-certificates curl bash supervisor nginx \
postgresql postgresql-contrib \
&& rm -rf /var/lib/apt/lists/*
RUN curl -fsSL https://dl.min.io/server/minio/release/linux-amd64/minio -o /usr/local/bin/minio \
&& chmod +x /usr/local/bin/minio
RUN curl -fsSL https://github.com/etcd-io/etcd/releases/download/v3.5.5/etcd-v3.5.5-linux-amd64.tar.gz -o /tmp/etcd.tgz \
&& tar -xzf /tmp/etcd.tgz -C /tmp \
&& mv /tmp/etcd-v3.5.5-linux-amd64/etcd /usr/local/bin/etcd \
&& mv /tmp/etcd-v3.5.5-linux-amd64/etcdctl /usr/local/bin/etcdctl \
&& rm -rf /tmp/etcd* /tmp/etcd.tgz
COPY --from=milvus_src /tini /tini
COPY --from=milvus_src /usr/bin/milvus /usr/local/bin/milvus
COPY nginx.conf /etc/nginx/nginx.conf
COPY supervisord.conf /etc/supervisor/conf.d/supervisord.conf
COPY start.sh /start.sh
COPY init-postgres.sh /init-postgres.sh
COPY config.yaml /app/config.yaml
RUN chmod +x /start.sh /init-postgres.sh
RUN mkdir -p /data/postgres /data/minio /data/etcd /data/milvus \
&& chown -R postgres:postgres /data/postgres
EXPOSE 7860
ENTRYPOINT ["/tini", "--"]
CMD ["/start.sh"]