mirror of
https://github.com/directus/directus.git
synced 2026-04-25 03:00:53 -04:00
Fix docker build for arm64 image (#19530)
* Fix docker build for arm64 image * Add changeset
This commit is contained in:
5
.changeset/mighty-ducks-jam.md
Normal file
5
.changeset/mighty-ducks-jam.md
Normal file
@@ -0,0 +1,5 @@
|
||||
---
|
||||
'directus': patch
|
||||
---
|
||||
|
||||
Fixed docker build for arm64 image
|
||||
10
Dockerfile
10
Dockerfile
@@ -6,8 +6,18 @@
|
||||
FROM node:18-alpine AS builder
|
||||
WORKDIR /directus
|
||||
|
||||
ARG TARGETPLATFORM
|
||||
|
||||
ENV NODE_OPTIONS=--max-old-space-size=8192
|
||||
|
||||
RUN \
|
||||
if [ "$TARGETPLATFORM" = 'linux/arm64' ]; then \
|
||||
apk --no-cache add \
|
||||
python3 \
|
||||
build-base \
|
||||
&& ln -sf /usr/bin/python3 /usr/bin/python \
|
||||
; fi
|
||||
|
||||
COPY package.json .
|
||||
RUN corepack enable && corepack prepare
|
||||
|
||||
|
||||
Reference in New Issue
Block a user