-
Notifications
You must be signed in to change notification settings - Fork 6
/
Dockerfile
35 lines (27 loc) · 1.26 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
FROM ubuntu:focal AS riscv_dev_env
ENV NODE_VERSION=14.18.0
ENV NVM_DIR=/root/.nvm
ENV XPACKS_REPO_FOLDER=/root/.xpack/repos
#ENV XPACKS_CACHE_FOLDER=/root/.xpack
ENV XPACKS_SYSTEM_FOLDER=/root/.xpack/system
#
RUN apt-get update -qq
RUN apt install -y curl
RUN curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.38.0/install.sh | bash
RUN . "$NVM_DIR/nvm.sh" && nvm install ${NODE_VERSION}
RUN . "$NVM_DIR/nvm.sh" && nvm use v${NODE_VERSION}
RUN . "$NVM_DIR/nvm.sh" && nvm alias default v${NODE_VERSION}
ENV PATH="/root/.nvm/versions/node/v${NODE_VERSION}/bin/:${PATH}"
RUN node --version
RUN npm --version
RUN npm install --global xpm@latest
RUN xpm install --global --verbose @xpack-dev-tools/[email protected]
ENV PATH=/root/.xpack/repos/@xpack-dev-tools/riscv-none-embed-gcc/10.1.0-1.1.1/.content/bin:/bin/:/usr/bin
RUN echo $PATH
RUN ls -l /root/.xpack/repos/@xpack-dev-tools/riscv-none-embed-gcc/10.1.0-1.1.1/.content/bin/
RUN riscv-none-embed-gcc --version
RUN apt-get install -y cmake
# Copies your code file from your action repository to the filesystem path `/` of the container
COPY docker_entrypoint.sh /docker_entrypoint.sh
# Code file to execute when the docker container starts up (`entrypoint.sh`)
ENTRYPOINT ["/docker_entrypoint.sh"]