diff --git a/.gitea/workflows/build.yaml b/.gitea/workflows/build.yaml index bef3e90..576fa18 100644 --- a/.gitea/workflows/build.yaml +++ b/.gitea/workflows/build.yaml @@ -24,8 +24,9 @@ jobs: run: git lfs checkout - name: Setup Node & NPM - run: nvm use - working-directory: ./project + uses: actions/setup-node@v4 + with: + node-version: '20.10.0' - name: Install dependencies run: npm install diff --git a/Dockerfile b/Dockerfile index bf362e9..d129382 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,27 +1,12 @@ # Use the .NET 6.0 SDK base image FROM mcr.microsoft.com/dotnet/sdk:6.0 -# Install necessary tools and dependencies -# - wget (for downloading NVM) -# - git & git-lfs +# Install necessary tools and dependencies (git, git-lfs, 7-Zip) RUN apt-get update && \ - apt-get install -y wget git git-lfs && \ + apt-get install -y git git-lfs p7zip-full && \ apt-get clean && \ rm -rf /var/lib/apt/lists/* -# Install NVM and use Node v20.10.0 by default -ENV NVM_DIR /usr/local/nvm -ENV NODE_VERSION v20.10.0 -RUN mkdir -p $NVM_DIR && \ - wget -qO- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.7/install.sh | bash && \ - . $NVM_DIR/nvm.sh && \ - nvm install $NODE_VERSION && \ - nvm use $NODE_VERSION && \ - nvm alias default $NODE_VERSION - -# Ensure node and npm are available in the PATH -ENV PATH $NVM_DIR/versions/node/$(nvm version)/bin:$PATH - # Set the working directory to /code WORKDIR /code