Something something like soundcloud but not like soundcloud.
Log in, upload records, done.
Simple, easy, KISS.
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.

Dockerfile-worker 1.4KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. # vim:set ft=dockerfile:
  2. FROM python:3.6-alpine
  3. LABEL maintainer="Dashie <dashie@sigpipe.me>"
  4. LABEL org.label-schema.license=MIT \
  5. org.label-schema.name=reel2bits-web \
  6. org.label-schema.vcs-url=https://dev.sigpipe.me/dashie/reel2bits \
  7. org.label-schema.build-date=$DRONE_BUILD_STARTED \
  8. org.label-schema.vcs-ref=$DRONE_COMMIT_SHA
  9. RUN mkdir -p /app /data /config
  10. WORKDIR /app
  11. ADD requirements.txt /app/
  12. RUN apk add --no-cache --virtual .build-deps \
  13. cmake gcc g++ make pkgconfig git boost-dev gd-dev libmad-dev libsndfile-dev libid3tag-dev libffi-dev
  14. RUN apk add --no-cache git libffi sox taglib libmagic tzdata libmad boost libsndfile libid3tag postgresql-dev wget
  15. RUN pip install --no-cache-dir -r requirements.txt
  16. # Build audiowaveform
  17. RUN git clone https://github.com/bbcrd/audiowaveform.git /tmp/audiowaveform && cd /tmp/audiowaveform && \
  18. wget https://github.com/google/googletest/archive/release-1.8.0.tar.gz -O gmock-1.8.0.tar.gz && tar xzf gmock-1.8.0.tar.gz && \
  19. ln -s googletest-release-1.8.0/googletest googletest && ln -s googletest-release-1.8.0/googlemock googlemock && \
  20. mkdir build && cd build && cmake .. && make && cp audiowaveform /app/ && cd .. && rm -rf audiowaveform && \
  21. apk del .build-deps
  22. ADD . /app/
  23. ADD entrypoint.sh /
  24. ADD config.py.sample /config/config.py
  25. VOLUME ["/data", "/config"]
  26. EXPOSE 5000
  27. ENTRYPOINT ["/entrypoint.sh"]
  28. CMD ["celery", "worker", "-A", "tasks.celery", "--loglevel=error"]