Commit 72482efb authored by Grant's avatar Grant
Browse files

fix docker build

parent 7988cd1a
Loading
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
FROM node:24-alpine AS base
# add openssl as root
RUN apk add --no-cache openssl 
RUN apk add --update --no-cache make g++ jpeg-dev cairo-dev giflib-dev pango-dev libtool autoconf automake
RUN apk add --update --no-cache make g++ jpeg-dev cairo-dev giflib-dev pango-dev libtool autoconf automake build-base pkgconfig

ARG VERSION

@@ -159,6 +159,8 @@ COPY --from=server-build /app/packages/server/dist ./packages/server/dist
COPY --from=server-build /app/node_modules/@prisma/client node_modules/@prisma/client
COPY --from=server-build /app/node_modules/.prisma node_modules/.prisma

RUN yarn workspace @sc07-canvas/server run npm rebuild canvas --update-binary || npx rebuild canvas --update-binary

#
# === RUNNER ===
#