Skip to content

Commit 6f46dc8

Browse files
committed
change
1 parent 69dd35e commit 6f46dc8

File tree

1 file changed

+7
-11
lines changed

1 file changed

+7
-11
lines changed

backend/Dockerfile

Lines changed: 7 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -14,17 +14,19 @@ ENV DJANGO_SETTINGS_MODULE=pycon.settings.prod \
1414
CELERY_RESULT_BACKEND=demo \
1515
HASHID_DEFAULT_SECRET_SALT=demo
1616

17-
FROM base AS build-stage
18-
19-
ARG FUNCTION_DIR
20-
2117
RUN apt-get update -y && apt-get install -y \
22-
gcc git \
2318
# weasyprint
2419
libpango-1.0-0 libpangoft2-1.0-0 libharfbuzz-subset0 \
2520
# postgres
2621
libpq-dev
2722

23+
FROM base AS build-stage
24+
25+
ARG FUNCTION_DIR
26+
27+
RUN apt-get update -y && apt-get install -y \
28+
gcc git
29+
2830
RUN mkdir -p ${FUNCTION_DIR}
2931
WORKDIR ${FUNCTION_DIR}
3032

@@ -66,12 +68,6 @@ ARG FUNCTION_DIR
6668

6769
WORKDIR ${FUNCTION_DIR}
6870

69-
RUN apt-get update -y && apt-get install -y \
70-
# weasyprint
71-
libpango-1.0-0 libpangoft2-1.0-0 libharfbuzz-subset0 \
72-
# postgres
73-
libpq-dev
74-
7571
ENV LIBRARY_PATH=/lib:/usr/lib LD_LIBRARY_PATH=/lib:/usr/lib
7672

7773
RUN apt-get update -y && apt-get install -y curl

0 commit comments

Comments
 (0)