The tiniest file-sharing server. Roughly equivalent to 1e-15 ordinary file-sharing servers.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

21 lines
405 B

  1. FROM python:3
  2. ENV PORT=8000
  3. ENV TITLE=femtoshare
  4. ENV UID=1000
  5. RUN mkdir -p /usr/src/femtoshare/
  6. RUN mkdir -p /usr/src/femtoshare/files
  7. RUN useradd -u $UID femto
  8. COPY femtoshare.py /usr/src/femtoshare
  9. EXPOSE $PORT
  10. RUN mkdir -p /files
  11. RUN chown -R femto:femto /files
  12. VOLUME /files
  13. WORKDIR /usr/src/femtoshare
  14. USER femto
  15. CMD python femtoshare.py --public --port $PORT --files-dir /files --title $TITLE