Skip to content

Commit

Permalink
Readded arm v6 and v7 platform to workflow publish_to_docker_hub
Browse files Browse the repository at this point in the history
  • Loading branch information
bropat committed Sep 29, 2024
1 parent 3fc4fc7 commit 1badb43
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/publish_to_docker_hub.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
14 changes: 9 additions & 5 deletions docker/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,16 +1,20 @@
FROM node:20-alpine as build
FROM node:20-alpine3.18 AS build
WORKDIR /tmp
COPY . .
RUN npm ci && npm run build

FROM node:20-alpine
WORKDIR /usr/src/app
FROM node:20-alpine3.18 AS prod
WORKDIR /tmp_prod
COPY --from=build /tmp/dist ./dist
COPY --from=build /tmp/docker/run.sh ./run.sh
COPY --from=build /tmp/package.json ./package.json
COPY --from=build /tmp/package-lock.json ./package-lock.json
RUN apk add --no-cache jq \
&& npm ci --only=production
RUN npm ci --only=production

FROM node:20-alpine
WORKDIR /usr/src/app
COPY --from=prod /tmp_prod ./
RUN apk add --no-cache jq
RUN apk add --no-cache bash
EXPOSE 3000
VOLUME ["/data"]
Expand Down

0 comments on commit 1badb43

Please sign in to comment.