Spaces:
Running
Running
File size: 846 Bytes
996c3a5 5ec8eb2 5cdfb43 5ec8eb2 5cdfb43 5ec8eb2 5cdfb43 bf4a552 5cdfb43 996c3a5 5ec8eb2 |
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 30 31 32 33 34 35 36 37 38 39 40 41 |
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"]
|