Files
ubuntu-o11v3-docker/Dockerfile
2024-09-06 16:20:07 +03:00

40 lines
1.0 KiB
Docker

# Use Ubuntu 18.04 as the base image
FROM ubuntu:18.04
# Install required packages and Python 3.8 with pip
RUN apt-get update && apt-get install -y \
nano \
htop \
sudo \
net-tools \
wget \
git \
ffmpeg \
software-properties-common \
&& add-apt-repository ppa:deadsnakes/ppa \
&& apt-get update \
&& apt-get install -y python3.8 python3.8-dev python3.8-venv python3-pip \
&& ln -sf /usr/bin/python3.8 /usr/bin/python3 \
&& ln -sf /usr/bin/pip3 /usr/bin/pip \
&& rm -rf /var/lib/apt/lists/*
# Set the working directory to /home
WORKDIR /home
# Set a build argument for the token
ARG GIT_TOKEN
# Clone the specified repository using the token
RUN git clone https://${GIT_TOKEN}@git.bitmaster.cc/BitMaster/o11-v3.git
# Change to the /o11-v3 directory
WORKDIR /home/o11-v3
# Set permissions to 777 for all files in /o11-v3
RUN chmod -R 777 /home/o11-v3
# Expose port 1234
EXPOSE 1234
# Set the default command to run the application
CMD ["./v3p_launcher", "-p", "1234"]