Dockerfile 507 B

1234567891011121314151617181920
  1. FROM lcnetdev/scriptshifter-base:latest
  2. ARG WORKROOT "/usr/local/scriptshifter/src"
  3. # Copy core application files.
  4. WORKDIR ${WORKROOT}
  5. COPY VERSION entrypoint.sh sscli uwsgi.ini wsgi.py ./
  6. COPY scriptshifter ./scriptshifter/
  7. COPY test ./test/
  8. COPY requirements.txt ./
  9. RUN pip install --no-cache-dir -r requirements.txt deps.txt
  10. ENV HF_DATASETS_CACHE /data/hf/datasets
  11. RUN ./sscli admin init-db
  12. RUN chmod +x ./entrypoint.sh
  13. #RUN chown -R www:www ${WORKROOT} .
  14. EXPOSE 8000
  15. ENTRYPOINT ["./entrypoint.sh"]