File tree Expand file tree Collapse file tree 1 file changed +24
-0
lines changed Expand file tree Collapse file tree 1 file changed +24
-0
lines changed Original file line number Diff line number Diff line change 1+ FROM ubuntu:24.04
2+
3+ # Install dependencies
4+ RUN apt-get update && \
5+ apt install -y build-essential cmake curl wget unzip python3 libncurses-dev \
6+ git flex bison bash make autoconf libcurl4-openssl-dev tcl \
7+ gettext zip pigz meson
8+
9+ ENV OHOS_SDK_RELEASE_VERSION=5.1.0
10+
11+ # Install OHOS SDK
12+ RUN curl -OL https://repo.huaweicloud.com/openharmony/os/${OHOS_SDK_RELEASE_VERSION}-Release/ohos-sdk-windows_linux-public.tar.gz && \
13+ tar -xvf ohos-sdk-windows_linux-public.tar.gz -C /opt && \
14+ rm ohos-sdk-windows_linux-public.tar.gz && \
15+ rm -rf /opt/ohos-sdk/{ohos,windows} && \
16+ cd /opt/ohos-sdk/linux && \
17+ for file in $(find . -type f); do \
18+ unzip $file && rm $file; \
19+ done
20+
21+ # Set environment variables
22+ ENV OHOS_SDK_HOME=/opt/ohos-sdk/linux
23+
24+ CMD /bin/bash
You can’t perform that action at this time.
0 commit comments