Skip to content

Commit

Permalink
Merge pull request #152 from Suwayomi/main
Browse files Browse the repository at this point in the history
swap docker build to node for multi arch
  • Loading branch information
Robonau authored Feb 5, 2024
2 parents a82c578 + d7873c9 commit 9f6fee9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ jobs:
- name: Build and push Docker image
uses: docker/build-push-action@v5
with:
platforms: linux/amd64, linux/arm64
platforms: linux/amd64, linux/arm64, linux/arm/v7, linux/arm/v6, linux/arm64, linux/ppc64le, linux/s390x
context: .
build-args: version=${{ needs.GenTag.outputs.value }}
push: true
Expand Down
6 changes: 3 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
# develop stage
FROM oven/bun:1.0.25-alpine as develop-stage
FROM node:lts-alpine as develop-stage
WORKDIR /app
COPY . .
ARG version="DevBuild"
RUN sed -i "s@BUILD_VERSION_PLACEHOLDER@${version}@" ./src/app.html
# RUN sed -i "s@TRACKING_PLACEHOLDER@docker@" ./src/app.html
# build stage
FROM develop-stage as build-stage
RUN bun install
RUN bun run build
RUN npm install
RUN npm run build
# production stage
FROM ghcr.io/nginxinc/nginx-unprivileged:1.25.3-alpine-slim as production-stage
USER root
Expand Down

0 comments on commit 9f6fee9

Please sign in to comment.