Adding docker files and adjusting path
This commit is contained in:
parent
aa0d36fd1f
commit
2c42457cfb
3 changed files with 29 additions and 10 deletions
17
Dockerfile
Normal file
17
Dockerfile
Normal file
|
|
@ -0,0 +1,17 @@
|
||||||
|
# Use the Epic Games UE runtime as base
|
||||||
|
FROM ghcr.io/epicgames/unreal-engine:runtime
|
||||||
|
|
||||||
|
# Set working directory
|
||||||
|
WORKDIR /app
|
||||||
|
|
||||||
|
# Copy your packages into the container
|
||||||
|
COPY Packages/ /app/Packages/
|
||||||
|
|
||||||
|
# Install any additional dependencies if needed
|
||||||
|
# RUN apt-get update && apt-get install -y <your-packages>
|
||||||
|
|
||||||
|
# Set any environment variables
|
||||||
|
# ENV UE_PROJECT_ROOT=/app
|
||||||
|
|
||||||
|
# Default command (modify as needed)
|
||||||
|
CMD ["/bin/bash"]
|
||||||
10
docker-compose.yml
Normal file
10
docker-compose.yml
Normal file
|
|
@ -0,0 +1,10 @@
|
||||||
|
version: '3.8'
|
||||||
|
|
||||||
|
services:
|
||||||
|
unreal-builder:
|
||||||
|
image: ghcr.io/epicgames/unreal-engine:runtime
|
||||||
|
volumes:
|
||||||
|
- ./Packages:/app/Packages
|
||||||
|
working_dir: /app
|
||||||
|
tty: true
|
||||||
|
stdin_open: true
|
||||||
|
|
@ -10,16 +10,8 @@ fn main() {
|
||||||
} else if target.contains("linux") {
|
} else if target.contains("linux") {
|
||||||
// Linux-specific linking
|
// Linux-specific linking
|
||||||
// OR if you have a custom location for Linux libs
|
// OR if you have a custom location for Linux libs
|
||||||
let lib_dir = "/home/tepichord/evolved-npcs/ai_fighter/AI_Fight_Sim/Plugins/NeuralNetworkAIController/Source/NeuralNetworkAIController/ThirdParty/FANN/lib/linux/x86_64-unknown-linux-gnu/";
|
println!("cargo:rustc-link-search=/usr/local/musl/lib");
|
||||||
let lib_path = std::path::Path::new(&lib_dir).join("libfann.a");
|
|
||||||
if lib_path.exists() {
|
|
||||||
println!("cargo:rustc-link-search=native={}", lib_dir);
|
|
||||||
println!("cargo:rustc-link-lib=static=fann");
|
println!("cargo:rustc-link-lib=static=fann");
|
||||||
println!("cargo:warning=Found libfann.a at: {:?}", lib_path);
|
|
||||||
} else {
|
|
||||||
println!("cargo:warning=libfann.a not found at: {:?}", lib_path);
|
|
||||||
panic!("libfann.a not found in specified directory");
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Add other target platforms as needed
|
// Add other target platforms as needed
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue