Browse Source

Smaller images

master
Joshua Rubingh 2 months ago
parent
commit
817c210908
  1. 6
      docker/Dockerfile.api
  2. 2
      docker/Dockerfile.nginx
  3. 4
      docker/Dockerfile.scheduler

6
docker/Dockerfile.api

@ -15,11 +15,13 @@ RUN python3 -m venv $VIRTUAL_ENV
ENV PATH="$VIRTUAL_ENV/bin:$PATH"
# Update packages and install nc for database up detection
RUN apt-get update && apt-get -y full-upgrade && apt-get install -y netcat
RUN rm -rf /var/lib/apt/lists/* && apt-get update && apt-get -y full-upgrade && apt-get install -y --no-install-recommends netcat
ARG DEBUG="False"
ENV DEBUG="${DEBUG}"
RUN if [ "$DEBUG" = "True" ] ; then apt-get install -y graphviz libgraphviz-dev; fi
RUN if [ "$DEBUG" = "True" ] ; then apt-get install -y --no-install-recommends graphviz libgraphviz-dev; fi
RUN apt-get autoremove -y && rm -rf /var/lib/apt/lists/*
# Create a logfile dir... not sure if this is the right way
RUN mkdir -p ${APP_HOME}/../log

2
docker/Dockerfile.nginx

@ -3,7 +3,7 @@
ARG DOCKER_CACHE
FROM ${DOCKER_CACHE}nginx:mainline
RUN apt-get update && apt-get -y full-upgrade
RUN rm -rf /var/lib/apt/lists/* && apt-get update && apt-get -y full-upgrade
RUN mkdir /etc/nginx/templates
COPY ./nginx/api.vhost.conf /etc/nginx/templates/default.conf.template

4
docker/Dockerfile.scheduler

@ -15,12 +15,14 @@ RUN python3 -m venv $VIRTUAL_ENV
ENV PATH="$VIRTUAL_ENV/bin:$PATH"
# Update packages and install nc for database up detection
RUN apt-get update && apt-get -y full-upgrade
RUN rm -rf /var/lib/apt/lists/* && apt-get update && apt-get -y full-upgrade
ARG DEBUG="False"
ENV DEBUG="${DEBUG}"
RUN if [ "$DEBUG" = "True" ] ; then apt-get install -y graphviz libgraphviz-dev; fi
RUN apt-get autoremove -y && rm -rf /var/lib/apt/lists/*
# Create a logfile dir... not sure if this is the right way
RUN mkdir -p ${APP_HOME}/../log

Loading…
Cancel
Save