From a19a9499296c659c2005b0598814b358452de4c7 Mon Sep 17 00:00:00 2001 From: Refringe Date: Fri, 1 Mar 2024 12:46:12 -0500 Subject: [PATCH] Update build.yaml and Dockerfile --- .gitea/workflows/build.yaml | 14 +++++++------- Dockerfile | 5 +++-- 2 files changed, 10 insertions(+), 9 deletions(-) diff --git a/.gitea/workflows/build.yaml b/.gitea/workflows/build.yaml index 0a5a29f..d7ced9e 100644 --- a/.gitea/workflows/build.yaml +++ b/.gitea/workflows/build.yaml @@ -14,16 +14,16 @@ jobs: steps: - 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 - run: git lfs pull - working-directory: ./SPT-AKI/Server - - - name: Setup Node + - name: Setup Node.js uses: actions/setup-node@v4 with: - node-version: '20.10.0' + node-version: '20.10' - name: Install Dependencies run: npm install diff --git a/Dockerfile b/Dockerfile index 075e30c..4f0309b 100644 --- a/Dockerfile +++ b/Dockerfile @@ -7,8 +7,9 @@ RUN apt-get update && \ 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 - -WORKDIR /workspace