29 lines
No EOL
808 B
Docker
29 lines
No EOL
808 B
Docker
# Use the Epic Games UE runtime as base
|
|
FROM ghcr.io/epicgames/unreal-engine:runtime
|
|
|
|
USER root
|
|
|
|
# Set working directory
|
|
WORKDIR /app
|
|
|
|
# Copy your packages into the container
|
|
COPY Packages/ /app/Packages/
|
|
|
|
RUN chown -R ue4:ue4 /app && \
|
|
chmod -R 755 /app && \
|
|
chmod +x /app/Packages/Manager/evolved-npcs && \
|
|
chmod u+w /app/Packages/ -R # Add write permissions to Packages directory
|
|
|
|
# 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
|
|
|
|
USER ue4
|
|
|
|
# Default command (modify as needed)
|
|
# cd into /Packages/Manager
|
|
# Run evolved-npcs with: RUST_LOG=info ./evolved-npcs --file ./simulations.json
|
|
WORKDIR /app/Packages/Manager
|
|
CMD RUST_LOG=info ./evolved-npcs --file ./simulations.json |