Unitty / Dockerfile
clone3's picture
Create Dockerfile
09e8d4f verified
raw
history blame
770 Bytes
# 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"]