@@ -5,25 +5,25 @@ RUN npm ci && npm run build
55
66FROM tiangolo/meinheld-gunicorn:python3.8
77LABEL org.opencontainers.image.source=https://github.com/cmu-delphi/delphi-epidata
8- # use delphi's timezome
9- RUN ln -s -f /usr/share/zoneinfo/America/New_York /etc/localtime
108
11- COPY requirements.txt /app/requirements_also.txt
12- RUN pip install --no-cache-dir -r /tmp/requirements.txt -r requirements_also.txt
9+ COPY ./devops/gunicorn_conf.py /app
10+ COPY ./devops/start_wrapper.sh /
11+ COPY ./src/server/ /app/app/
12+ COPY --from=builder ./src/build/lib/ /app/app/lib/
13+
14+ COPY requirements.api.txt /app/requirements_also.txt
15+
16+ RUN ln -s -f /usr/share/zoneinfo/America/New_York /etc/localtime \
17+ && rm -rf /app/app/__pycache__ /app/app/*.php \
18+ && chmod -R o+r /app/app \
19+ && chmod 755 /start_wrapper.sh \
20+ && pip install --no-cache-dir -r /tmp/requirements.txt -r requirements_also.txt
1321# the file /tmp/requirements.txt is created in the parent docker definition. (see:
1422# https://github.com/tiangolo/meinheld-gunicorn-docker/blob/master/docker-images/python3.8.dockerfile#L5 )
1523# this combined requirements installation ensures all version constrants are accounted for.
1624
1725# disable python stdout buffering
1826ENV PYTHONUNBUFFERED 1
1927
20- COPY ./devops/gunicorn_conf.py /app
21- COPY ./devops/start_wrapper.sh /
22- COPY ./src/server/ /app/app/
23- COPY --from=builder ./src/build/lib/ /app/app/lib/
24- RUN rm -rf /app/app/__pycache__ /app/app/*.php \
25- && chmod -R o+r /app/app \
26- && chmod 755 /start_wrapper.sh
27-
2828ENTRYPOINT [ "/entrypoint.sh" ]
2929CMD [ "/start_wrapper.sh" ]
0 commit comments