Skip to content

Commit ae9194b

Browse files
committed
changes
1 parent c85b942 commit ae9194b

File tree

2 files changed

+12
-8
lines changed

2 files changed

+12
-8
lines changed

.github/workflows/build-backend.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,6 @@ jobs:
3131
run: |
3232
/kaniko/executor \
3333
--dockerfile=./Dockerfile \
34-
--context=./ \
34+
--context=git://github.com/${{ github.repository }}#${{ github.ref }} \
3535
--verbosity debug \
3636
--destination=${{ secrets.AWS_ACCOUNT_ID }}.dkr.ecr.eu-central-1.amazonaws.com/pythonit/pycon-backend:arm-${{ inputs.githash }}

backend/Dockerfile

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

17-
RUN apt-get update -y && apt-get install -y \
18-
# weasyprint
19-
libpango-1.0-0 libpangoft2-1.0-0 libharfbuzz-subset0 \
20-
# postgres
21-
libpq-dev
22-
2317
FROM base AS build-stage
2418

2519
ARG FUNCTION_DIR
2620

2721
RUN apt-get update -y && apt-get install -y \
28-
gcc git
22+
gcc git \
23+
# weasyprint
24+
libpango-1.0-0 libpangoft2-1.0-0 libharfbuzz-subset0 \
25+
# postgres
26+
libpq-dev
2927

3028
RUN mkdir -p ${FUNCTION_DIR}
3129
WORKDIR ${FUNCTION_DIR}
@@ -68,6 +66,12 @@ ARG FUNCTION_DIR
6866

6967
WORKDIR ${FUNCTION_DIR}
7068

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+
7175
ENV LIBRARY_PATH=/lib:/usr/lib LD_LIBRARY_PATH=/lib:/usr/lib
7276

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

0 commit comments

Comments
 (0)