@@ -5,25 +5,25 @@ RUN npm ci && npm run build
5
5
6
6
FROM tiangolo/meinheld-gunicorn:python3.8
7
7
LABEL 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
10
8
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
13
21
# the file /tmp/requirements.txt is created in the parent docker definition. (see:
14
22
# https://github.com/tiangolo/meinheld-gunicorn-docker/blob/master/docker-images/python3.8.dockerfile#L5 )
15
23
# this combined requirements installation ensures all version constrants are accounted for.
16
24
17
25
# disable python stdout buffering
18
26
ENV PYTHONUNBUFFERED 1
19
27
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
-
28
28
ENTRYPOINT [ "/entrypoint.sh" ]
29
29
CMD [ "/start_wrapper.sh" ]
0 commit comments