mirror of
https://github.com/sp-tarkov/build.git
synced 2025-02-13 06:10:47 -05:00
Update build.yaml and Dockerfile
This commit is contained in:
parent
7836688473
commit
a19a949929
@ -14,16 +14,16 @@ jobs:
|
|||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout Server Project
|
- name: Checkout Server Project
|
||||||
run: git clone https://dev.sp-tarkov.com/SPT-AKI/Server.git --branch "3.8.0-BE" --depth 1 "./SPT-AKI/Server"
|
uses: actions/checkout@v4
|
||||||
|
with:
|
||||||
|
repository: 'refringe/Server'
|
||||||
|
fetch-depth: 0
|
||||||
|
lfs: true
|
||||||
|
|
||||||
- name: Checkout Git LFS Objects
|
- name: Setup Node.js
|
||||||
run: git lfs pull
|
|
||||||
working-directory: ./SPT-AKI/Server
|
|
||||||
|
|
||||||
- name: Setup Node
|
|
||||||
uses: actions/setup-node@v4
|
uses: actions/setup-node@v4
|
||||||
with:
|
with:
|
||||||
node-version: '20.10.0'
|
node-version: '20.10'
|
||||||
|
|
||||||
- name: Install Dependencies
|
- name: Install Dependencies
|
||||||
run: npm install
|
run: npm install
|
||||||
|
@ -7,8 +7,9 @@ RUN apt-get update && \
|
|||||||
apt-get clean && \
|
apt-get clean && \
|
||||||
rm -rf /var/lib/apt/lists/*
|
rm -rf /var/lib/apt/lists/*
|
||||||
|
|
||||||
|
# Set the working directory to /code
|
||||||
|
WORKDIR /code
|
||||||
|
|
||||||
# Add a non-root user for running the build
|
# Add a non-root user for running the build
|
||||||
RUN useradd -m builder
|
RUN useradd -m builder
|
||||||
USER builder
|
USER builder
|
||||||
|
|
||||||
WORKDIR /workspace
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user