* chore: Restart celery worker on Python source change * chore: Debounce celery restarts, only watch ietf dir
24 lines
741 B
Docker
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" ]
|