Hellbot / Dockerfile
Ufoptg's picture
Update Dockerfile
5cdfb43 verified
raw
history blame
846 Bytes
FROM rendyprojects/python:latest
# Install dependencies
RUN apt-get update && \
apt-get install --no-install-recommends -y \
python3-dev \
python3-pip \
python3-virtualenv \
git \
mediainfo \
nano \
ffmpeg \
unzip && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*
# Copy requirements and install them
COPY ./reqs.txt /HellBot/reqs.txt
RUN pip3 install --no-cache-dir -U -r /HellBot/reqs.txt
# Set working directory
WORKDIR /HellBot
# Copy the application code
COPY . .
# Set appropriate permissions
RUN chown -R 1000:0 /HellBot \
&& chown -R 1000:0 . \
&& chmod 777 . \
&& chmod 777 /usr \
&& chown -R 1000:0 /usr \
&& chmod -R 755 /HellBot \
&& chmod +x /HellBot/start.sh
# Expose port
EXPOSE 7860
# Start the application using the start.sh script
CMD ["./start.sh"]