datatracker/dev/celery/Dockerfile
Jennifer Richards b7dd8b9b95
chore: Restart celery worker on source changes (#5749)
* chore: Restart celery worker on Python source change

* chore: Debounce celery restarts, only watch ietf dir
2023-06-08 14:13:46 -05:00

24 lines
741 B
Docker

# Dockerfile for celery worker
#
FROM ghcr.io/ietf-tools/datatracker-app-base:latest
LABEL maintainer="IETF Tools Team <tools-discuss@ietf.org>"
ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get purge -y imagemagick imagemagick-6-common
# Copy the startup file
COPY dev/celery/docker-init.sh /docker-init.sh
RUN sed -i 's/\r$//' /docker-init.sh && \
chmod +x /docker-init.sh
# Install current datatracker python dependencies
COPY requirements.txt /tmp/pip-tmp/
RUN pip3 --disable-pip-version-check --no-cache-dir install -r /tmp/pip-tmp/requirements.txt
RUN rm -rf /tmp/pip-tmp
# Add watchmedo utility for dev containers
RUN pip3 --disable-pip-version-check --no-cache-dir install watchdog[watchmedo]
ENTRYPOINT [ "/docker-init.sh" ]