0
0
mirror of https://github.com/sp-tarkov/build.git synced 2025-02-12 16:50:45 -05:00

Update build.yaml and Dockerfile

This commit is contained in:
Refringe 2024-03-01 11:37:25 -05:00
parent d1809c4124
commit 2287606b0c
No known key found for this signature in database
GPG Key ID: DA8524051241DD36
2 changed files with 5 additions and 19 deletions

View File

@ -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

View File

@ -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