FROM python:3.10 # Set working directory WORKDIR /app # Install PySyft RUN pip install --no-cache-dir "syft" # Copy project files COPY . . # Expose the necessary port (default is 8080) EXPOSE 7860 # Use Hugging Face secrets for admin credentials ENV ADMIN_EMAIL=${root_email} ENV ADMIN_PASSWORD=${root_pass} # Start the PySyft server CMD ["python", "-c", "import syft as sy; sy.orchestra.launch(name='private-datasite', port=7860, create_producer=True, n_consumers=1, dev_mode=False, reset=True)"]