0
0
mirror of https://github.com/sp-tarkov/build.git synced 2025-02-12 21:10:46 -05:00
build/Dockerfile
Refringe 9ba230f190
Build Scripts
Got to a point where the server and modules are being compiled correctly. Launcher script needs... something. It's failing to build and I don't know why.

TODO:
- Fix Launcher Build Script
- Combine sub-builds into output directory
- Compress output directory
- Upload release to public folder
- Adapt build script to work with a dynamic tag value
- Update script to only run _any_ builds when the tag exists in all three
- Write drone configuration version of the dockerfile/script
- Testing within the Drone env
2024-02-23 20:15:54 -05:00

32 lines
1.1 KiB
Docker

## This image is configured just as the drone runner image but expected to be run locally for
## rapid development and testing. It is not intended to be used in production.
# Start with the .NET 6.0 SDK Windows Server Core base image
FROM mcr.microsoft.com/dotnet/sdk:6.0-windowsservercore-ltsc2022
# Use PowerShell
SHELL ["powershell", "-Command"]
# Install Chocolatey package manager
RUN Set-ExecutionPolicy Bypass -Scope Process -Force; \
[System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; \
iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))
# Use Chocolatey to install Node.js and Git
RUN choco install nodejs --version=20.10.0 -y
RUN choco install git -y
# Log Versions
RUN node --version
RUN npm --version
RUN git --version
# Copy build scripts into the container
COPY project/build.ps1 /Code/project/
COPY project/build_server.ps1 /Code/project/
COPY project/build_modules.ps1 /Code/project/
COPY project/build_launcher.ps1 /Code/project/
# Set the working directory to /Code
WORKDIR /Code