File size: 419 Bytes
8308b9e bfbe1ae 8308b9e |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 |
# Use the pre-built image with models as the base
FROM slabstech/dhwani-model-server:latest
WORKDIR /app
COPY dhwani_config.json .
# Copy application code
COPY . .
# Set up user
RUN useradd -ms /bin/bash appuser \
&& chown -R appuser:appuser /app
USER appuser
# Expose port
EXPOSE 7860
# Start the server
CMD ["python", "/app/src/server/main.py", "--host", "0.0.0.0", "--port", "7860", "--config", "config_two"] |