mirror of
https://github.com/sp-tarkov/build.git
synced 2025-02-13 09:50:45 -05:00
Update build.yaml and Dockerfile
This commit is contained in:
parent
0ec5e38f8e
commit
13f2c1d8e6
@ -10,13 +10,14 @@ jobs:
|
|||||||
Build Server:
|
Build Server:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
container:
|
container:
|
||||||
image: refringe/spt-build-environment:1.0.5
|
image: refringe/spt-build-server:0.0.1
|
||||||
steps:
|
steps:
|
||||||
|
- name: Print Versions
|
||||||
- name: Set up Node
|
run: |
|
||||||
uses: actions/setup-node@v3
|
echo "Git version:" && git --version
|
||||||
with:
|
echo "Git LFS version:" && git-lfs --version
|
||||||
node-version: '20.10.0'
|
echo "Node.js version:" && node --version
|
||||||
|
echo "NPM version:" && npm --version
|
||||||
|
|
||||||
- name: Server Cache
|
- name: Server Cache
|
||||||
id: server-cache
|
id: server-cache
|
||||||
@ -36,6 +37,16 @@ jobs:
|
|||||||
cd /workspace/refringe/Build/server
|
cd /workspace/refringe/Build/server
|
||||||
git lfs pull && git lfs ls-files
|
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
|
# find build type
|
||||||
# npm install
|
# npm install
|
||||||
# npm build:type
|
# npm build:type
|
||||||
|
12
Dockerfile
12
Dockerfile
@ -1,15 +1,11 @@
|
|||||||
# Use the .NET 6.0 SDK base image
|
# Use the Node v20.10.0 base image
|
||||||
FROM mcr.microsoft.com/dotnet/sdk:6.0
|
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 && \
|
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 && \
|
apt-get clean && \
|
||||||
rm -rf /var/lib/apt/lists/*
|
rm -rf /var/lib/apt/lists/*
|
||||||
|
|
||||||
# Set the working directory to /code
|
# Set the working directory to /code
|
||||||
WORKDIR /code
|
WORKDIR /code
|
||||||
|
|
||||||
# Add a non-root user for running the build
|
|
||||||
RUN useradd -m builder
|
|
||||||
USER builder
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user