Skip to content

Commit

Permalink
ff
Browse files Browse the repository at this point in the history
  • Loading branch information
Tommytrg committed Nov 28, 2024
1 parent 42fbcdd commit 0020232
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -18,17 +18,16 @@ WORKDIR /data
RUN corepack enable && corepack prepare [email protected] --activate

# Subroutine for arm64 platform
RUN set -e; \
if [ "$TARGETPLATFORM" = "linux/amd64" ]; then \
RUN if [ "$TARGETPLATFORM" = "linux/amd64" ]; then \
echo "Current platform linux/amd64"; \
yarn; \
yarn build; \
yarn || exit 1; \
yarn build || exit 1; \
elif [ "$TARGETPLATFORM" = "linux/arm64" ]; then \
echo "Current platform linux/arm64"; \
apt install build-essential; \
yarn global add node-gyp; \
yarn; \
yarn build; \
yarn global add node-gyp || exit 1; \
yarn || exit 1; \
yarn build || exit 1; \
else \
echo "Unsupported platform: $TARGETPLATFORM"; \
exit 1; \
Expand Down

0 comments on commit 0020232

Please sign in to comment.