feat: merge dt and celery container builds (#6973)
* feat: merge dt and celery container builds * fix: mount /a instead of /assets * feat: use consolidated script * fix: get start.sh dependencies. Remove watchdog * fix: correct source path
This commit is contained in:
parent
661941dbf1
commit
ff228a5913
|
@ -1,17 +1,26 @@
|
||||||
FROM ghcr.io/ietf-tools/datatracker-app-base:latest
|
FROM ghcr.io/ietf-tools/datatracker-app-base:latest
|
||||||
LABEL maintainer="IETF Tools Team <tools-discuss@ietf.org>"
|
LABEL maintainer="IETF Tools Team <tools-discuss@ietf.org>"
|
||||||
|
|
||||||
ENV DEBIAN_FRONTEND=noninteractive
|
ENV DEBIAN_FRONTEND=noninteractive
|
||||||
|
|
||||||
COPY . .
|
RUN apt-get purge -y imagemagick imagemagick-6-common
|
||||||
COPY ./dev/build/start.sh ./start.sh
|
|
||||||
RUN pip3 --disable-pip-version-check --no-cache-dir install -r requirements.txt
|
COPY . .
|
||||||
RUN chmod +x start.sh && \
|
COPY ./dev/build/start.sh ./start.sh
|
||||||
chmod +x docker/scripts/app-create-dirs.sh && \
|
COPY ./dev/build/datatracker-start.sh ./datatracker-start.sh
|
||||||
sh ./docker/scripts/app-create-dirs.sh
|
COPY ./dev/build/celery-start.sh ./celery-start.sh
|
||||||
|
|
||||||
VOLUME [ "/assets" ]
|
RUN pip3 --disable-pip-version-check --no-cache-dir install -r requirements.txt
|
||||||
|
|
||||||
EXPOSE 8000
|
RUN chmod +x datatracker-start.sh && \
|
||||||
|
chmod +x celery-start.sh \
|
||||||
CMD ["./start.sh"]
|
chmod +x docker/scripts/app-create-dirs.sh && \
|
||||||
|
sh ./docker/scripts/app-create-dirs.sh
|
||||||
|
|
||||||
|
RUN mkdir -p /a
|
||||||
|
|
||||||
|
VOLUME [ "/a" ]
|
||||||
|
|
||||||
|
EXPOSE 8000
|
||||||
|
|
||||||
|
CMD ["./start.sh"]
|
||||||
|
|
Loading…
Reference in a new issue