mirror of
https://github.com/sp-tarkov/build.git
synced 2025-02-13 02:30:45 -05:00
Update build.yaml and Dockerfile
This commit is contained in:
parent
d1809c4124
commit
2287606b0c
@ -24,8 +24,9 @@ jobs:
|
|||||||
run: git lfs checkout
|
run: git lfs checkout
|
||||||
|
|
||||||
- name: Setup Node & NPM
|
- name: Setup Node & NPM
|
||||||
run: nvm use
|
uses: actions/setup-node@v4
|
||||||
working-directory: ./project
|
with:
|
||||||
|
node-version: '20.10.0'
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: npm install
|
run: npm install
|
||||||
|
19
Dockerfile
19
Dockerfile
@ -1,27 +1,12 @@
|
|||||||
# Use the .NET 6.0 SDK base image
|
# Use the .NET 6.0 SDK base image
|
||||||
FROM mcr.microsoft.com/dotnet/sdk:6.0
|
FROM mcr.microsoft.com/dotnet/sdk:6.0
|
||||||
|
|
||||||
# Install necessary tools and dependencies
|
# Install necessary tools and dependencies (git, git-lfs, 7-Zip)
|
||||||
# - wget (for downloading NVM)
|
|
||||||
# - git & git-lfs
|
|
||||||
RUN apt-get update && \
|
RUN apt-get update && \
|
||||||
apt-get install -y wget git git-lfs && \
|
apt-get install -y git git-lfs p7zip-full && \
|
||||||
apt-get clean && \
|
apt-get clean && \
|
||||||
rm -rf /var/lib/apt/lists/*
|
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
|
# Set the working directory to /code
|
||||||
WORKDIR /code
|
WORKDIR /code
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user