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