Skip to content

Commit

Permalink
Merge pull request #73 from AlexSciFier/fix-sharp-buld-for-arm
Browse files Browse the repository at this point in the history
fix: Broken armv7 image #72
  • Loading branch information
AlexSciFier authored Sep 6, 2023
2 parents 83b7597 + cecbef9 commit 826bc7a
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
9 changes: 6 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM --platform=$BUILDPLATFORM node:alpine AS ui-build
FROM --platform=$BUILDPLATFORM node:lts-slim AS ui-build
WORKDIR /app/client

ENV PATH /app/client/node_modules/.bin:$PATH
Expand All @@ -13,7 +13,10 @@ RUN npm ci --omit=dev
COPY ./frontend .
RUN npm run build

FROM --platform=$BUILDPLATFORM node:alpine AS srv-build
FROM --platform=$TARGETPLATFORM node:lts-slim AS srv-build

RUN apt-get update && apt-get install python3 make build-essential -y

WORKDIR /app/server

ARG NODE_ENV=production
Expand All @@ -24,7 +27,7 @@ COPY ./server/package*.json ./

RUN npm ci --omit=dev

FROM node:alpine
FROM --platform=$TARGETPLATFORM node:lts-slim
USER node
WORKDIR /app
COPY --chown=node ./server ./
Expand Down
6 changes: 3 additions & 3 deletions server/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 826bc7a

Please sign in to comment.