CoolFace
Apppublic

recognito/FaceRecognition-LivenessDetection-FaceAnalysis

sourceHugging Faceupdated 1y agoView on Hugging Face
602likes
Dockerfile28 linesDownload Raw Back to root
1FROM ubuntu:20.042 3# Set the timezone of the container4ENV CONTAINER_TIMEZONE=UTC5RUN ln -snf /usr/share/zoneinfo/$CONTAINER_TIMEZONE /etc/localtime && echo $CONTAINER_TIMEZONE > /etc/timezone6 7# Create directory for the application8RUN mkdir -p /home/recognito_face9 10# Set the working directory11WORKDIR /home/recognito_face12 13# Copy the application files into the container14COPY . .15 16# Make the scripts executable17RUN chmod +x install.sh run_demo.sh18 19# Run the install.sh script to perform any installation tasks20RUN apt-get update && apt-get install -y sudo21RUN ./install.sh22 23# Expose port 8000(flask), 7860(gradio)24EXPOSE 8000 786025 26# Set the default command to run the application27CMD ["./run_demo.sh"]28