Skip to content

Commit 6a0f1cf

Browse files
committed
ci: speedup docker build [skip ci]
1 parent 70ae418 commit 6a0f1cf

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

.github/workflows/docker-push.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ jobs:
3232
uses: docker/build-push-action@v6
3333
with:
3434
context: .
35-
platforms: linux/amd64
35+
platforms: linux/amd64,linux/arm64
3636
build-args: |
3737
ROUTE_ROOT_PATH=${{ inputs.path }}
3838
CONTEXT_PATH=${{ inputs.path }}

Dockerfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
FROM buildpack-deps:bullseye-scm AS source
1+
FROM --platform=$BUILDPLATFORM buildpack-deps:bullseye-scm AS source
22

33
WORKDIR /usr/src
44

55
RUN git clone --depth 1 https://github.com/ReaJason/MemShellParty.git . && \
66
rm -rf vul integration-test tools
77

88
# https://hub.docker.com/r/oven/bun
9-
FROM oven/bun:1.2.19 AS frontend
9+
FROM --platform=$BUILDPLATFORM oven/bun:1.2.19 AS frontend
1010

1111
ARG ROUTE_ROOT_PATH="/"
1212
ARG CONTEXT_PATH=""
@@ -25,7 +25,7 @@ COPY --from=source /usr/src/web /usr/src/web
2525
RUN bun run build
2626

2727
# https://hub.docker.com/_/eclipse-temurin/tags?name=17.
28-
FROM eclipse-temurin:17.0.15_6-jdk-noble AS backend
28+
FROM --platform=$BUILDPLATFORM eclipse-temurin:17.0.15_6-jdk-noble AS backend
2929

3030
WORKDIR /usr/src
3131

0 commit comments

Comments
 (0)