-
Notifications
You must be signed in to change notification settings - Fork 319
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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
- Loading branch information
Showing
1 changed file
with
26 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,26 @@ | ||
FROM ghcr.io/ietf-tools/datatracker-app-base:latest | ||
LABEL maintainer="IETF Tools Team <tools-discuss@ietf.org>" | ||
|
||
ENV DEBIAN_FRONTEND=noninteractive | ||
|
||
COPY . . | ||
COPY ./dev/build/start.sh ./start.sh | ||
RUN pip3 --disable-pip-version-check --no-cache-dir install -r requirements.txt | ||
RUN chmod +x start.sh && \ | ||
chmod +x docker/scripts/app-create-dirs.sh && \ | ||
sh ./docker/scripts/app-create-dirs.sh | ||
|
||
VOLUME [ "/assets" ] | ||
|
||
EXPOSE 8000 | ||
|
||
CMD ["./start.sh"] | ||
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 . . | ||
COPY ./dev/build/start.sh ./start.sh | ||
COPY ./dev/build/datatracker-start.sh ./datatracker-start.sh | ||
COPY ./dev/build/celery-start.sh ./celery-start.sh | ||
|
||
RUN pip3 --disable-pip-version-check --no-cache-dir install -r requirements.txt | ||
|
||
RUN chmod +x datatracker-start.sh && \ | ||
chmod +x celery-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"] |