Skip to content

Commit

Permalink
fix: Broken armv7 image #72
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexSciFier committed Sep 6, 2023
1 parent 2f0d166 commit cecbef9
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 cecbef9

Please sign in to comment.