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

Update build.yaml and Dockerfile

This commit is contained in:
Refringe 2024-03-02 13:59:49 -05:00
parent 0ec5e38f8e
commit 13f2c1d8e6
No known key found for this signature in database
GPG Key ID: DA8524051241DD36
2 changed files with 21 additions and 14 deletions

View File

@ -10,13 +10,14 @@ jobs:
Build Server:
runs-on: ubuntu-latest
container:
image: refringe/spt-build-environment:1.0.5
image: refringe/spt-build-server:0.0.1
steps:
- name: Set up Node
uses: actions/setup-node@v3
with:
node-version: '20.10.0'
- name: Print Versions
run: |
echo "Git version:" && git --version
echo "Git LFS version:" && git-lfs --version
echo "Node.js version:" && node --version
echo "NPM version:" && npm --version
- name: Server Cache
id: server-cache
@ -36,6 +37,16 @@ jobs:
cd /workspace/refringe/Build/server
git lfs pull && git lfs ls-files
- name: Install Server Dependencies
run: |
cd /workspace/refringe/Build/server
npm install
- name: Install Server Dependencies
run: |
cd /workspace/refringe/Build/server
npm build:bleeding
# find build type
# npm install
# npm build:type

View File

@ -1,15 +1,11 @@
# Use the .NET 6.0 SDK base image
FROM mcr.microsoft.com/dotnet/sdk:6.0
# Use the Node v20.10.0 base image
FROM node:20.10.0
# Install necessary tools and dependencies (git, git-lfs, nodejs, 7-Zip, zstd)
# Install necessary tools and dependencies (git, git-lfs, and zstd)
RUN apt-get update && \
apt-get install -y git git-lfs nodejs p7zip-full zstd && \
apt-get install -y git git-lfs zstd && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*
# Set the working directory to /code
WORKDIR /code
# Add a non-root user for running the build
RUN useradd -m builder
USER builder