File size: 770 Bytes
09e8d4f
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# Use a base image with necessary dependencies
FROM ubuntu:20.04

# Set environment variables to avoid user interaction during installation
ENV DEBIAN_FRONTEND=noninteractive

# Update package list and install necessary dependencies
RUN apt-get update && apt-get install -y \
    libglib2.0-0 \
    libsm6 \
    libxrender1 \
    libxext6 \
    xvfb \
    && rm -rf /var/lib/apt/lists/*

# Create a directory for the server build
RUN mkdir /server

# Copy the server build files into the container
COPY ServerBuild /server

# Make the server executable executable
RUN chmod +x /server/ServerBuild.x86_64

# Expose port 7860 for communication
EXPOSE 7860

# Run the server build using xvfb-run to handle graphics (if needed)
CMD ["xvfb-run", "/server/ServerBuild.x86_64"]