Skip to content

Commit 5de9af0

Browse files
committed
fix(ci): Fix dockerfile
1 parent 9ee868d commit 5de9af0

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

backend/magic-service/Dockerfile

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11

2-
ARG BASE_IMAGE=ghcr.io/dtyq/php-dockerfile:8.4-alpine-3.22-swow-1.6.1-jsonpath-parle-xlswriter
2+
ARG BASE_IMAGE=ghcr.io/dtyq/php-dockerfile:8.4-alpine-3.23-swow-ci-jsonpath-parle-xlswriter
33
FROM ${BASE_IMAGE}
44

55
ARG TARGETARCH
@@ -19,6 +19,19 @@ RUN mkdir -p /etc/php/conf.d && \
1919
echo "memory_limit = -1" > /etc/php/conf.d/memory-limit.ini && \
2020
echo "max_execution_time = 0" > /etc/php/conf.d/max-execution-time.ini
2121

22+
# install dependencies
23+
RUN --mount=type=cache,id=alpine-apk-3.23-${TARGETARCH},target=/var/cache/apk \
24+
# setup apk mirror
25+
sed -i.bak "s/dl-cdn.alpinelinux.org/${APK_MIRROR}/g" /etc/apk/repositories && \
26+
apk update && \
27+
apk add \
28+
icu-data-full \
29+
tzdata \
30+
tini \
31+
&& \
32+
# restore apk repositories
33+
mv /etc/apk/repositories.bak /etc/apk/repositories
34+
2235
COPY . /opt/www
2336

2437
WORKDIR /opt/www

0 commit comments

Comments
 (0)