diff --git a/.github/workflows/publish_to_docker_hub.yaml b/.github/workflows/publish_to_docker_hub.yaml index cb42d80..1a0f3bf 100644 --- a/.github/workflows/publish_to_docker_hub.yaml +++ b/.github/workflows/publish_to_docker_hub.yaml @@ -59,6 +59,6 @@ jobs: with: context: . file: ./docker/Dockerfile - platforms: linux/amd64,linux/arm64 + platforms: linux/amd64,linux/arm64,linux/arm/v6,linux/arm/v7 push: true tags: ${{ steps.prep.outputs.tags }} diff --git a/docker/Dockerfile b/docker/Dockerfile index e188ddd..da766ed 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -1,9 +1,9 @@ -FROM node:20-alpine3.18 AS build +FROM node:18-alpine3.18 AS build WORKDIR /tmp COPY . . RUN npm ci && npm run build -FROM node:20-alpine3.18 AS prod +FROM node:18-alpine3.18 AS prod WORKDIR /tmp_prod COPY --from=build /tmp/dist ./dist COPY --from=build /tmp/docker/run.sh ./run.sh