File tree 2 files changed +11
-2
lines changed
2 files changed +11
-2
lines changed Original file line number Diff line number Diff line change 34
34
with :
35
35
images : johannesjo/super-productivity
36
36
37
+ - name : Set up Docker Buildx
38
+ uses : docker/setup-buildx-action@v3
39
+
37
40
- name : Build and push Docker image
38
41
uses : docker/build-push-action@v6
39
42
with :
43
46
labels : ${{ steps.meta.outputs.labels }}
44
47
build-args : |
45
48
BUILDKIT_CONTEXT_KEEP_GIT_DIR=1
49
+ platforms : linux/amd64, linux/arm64, linux/arm/v7
50
+ cache-from : type=gha
51
+ cache-to : type=gha,mode=max
Original file line number Diff line number Diff line change 3
3
# ## build ###
4
4
5
5
# base image
6
- FROM node:20 as build
6
+ FROM --platform=$BUILDPLATFORM node:20 as build
7
7
8
8
# add app
9
9
COPY . /app
@@ -26,7 +26,10 @@ RUN npm run buildFrontend:prodWeb
26
26
# ## serve ###
27
27
28
28
# base image
29
- FROM nginx:1-alpine
29
+ # --platform=$TARGETPLATFORM is redundant and docker will raise a warning,
30
+ # but it makes it clearer that the target platform might be different from the
31
+ # build platform
32
+ FROM --platform=$TARGETPLATFORM nginx:1-alpine
30
33
31
34
# environmental variables
32
35
ENV PORT=80
You can’t perform that action at this time.
0 commit comments