Skip to content

Commit

Permalink
fix: support to run in ARM64 environment (#4102)
Browse files Browse the repository at this point in the history
* fix: support to run in ARM64 environment

Signed-off-by: Jian Li <[email protected]>

* Fix: resolve .build-deps and python2 dependency issue

Signed-off-by: Jian Li <[email protected]>

---------

Signed-off-by: Jian Li <[email protected]>
  • Loading branch information
gunine authored Oct 18, 2023
1 parent 694bb99 commit 1849fc0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
7 changes: 4 additions & 3 deletions build/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,15 @@
# that can be found in the LICENSE file.

# Prepare the build environment
FROM node:12-alpine3.14 as builder
FROM node:14-alpine as builder

ARG YARN_VERSION=1.22.4

WORKDIR /kubesphere
ADD . /kubesphere/

RUN apk add --no-cache --virtual .build-deps ca-certificates python2 python3 py3-pip make openssl g++ bash
RUN apk add --no-cache --virtual python2
RUN apk add --no-cache --virtual .build-deps ca-certificates python3 py3-pip make openssl g++ bash
RUN npm install yarn@${YARN_VERSION}

# If you have trouble downloading the yarn binary, try the following:
Expand All @@ -32,7 +33,7 @@ RUN mv /kubesphere/package.json /out/
##############
# Final Image
##############
FROM node:12-alpine3.14 as base_os_context
FROM node:14-alpine as base_os_context

RUN adduser -D -g kubesphere -u 1002 kubesphere && \
mkdir -p /opt/kubesphere/console && \
Expand Down
2 changes: 1 addition & 1 deletion build/Dockerfile.dapper
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# Use of this source code is governed by an Apache license
# that can be found in the LICENSE file.

FROM node:12-alpine3.14
FROM node:14-alpine

RUN adduser -D -g kubesphere -u 1002 kubesphere && \
mkdir -p /opt/kubesphere/console && \
Expand Down

0 comments on commit 1849fc0

Please sign in to comment.