File size: 813 Bytes
749d1d8
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
bab2e06
efc3d2e
bf9fccb
bab2e06
749d1d8
 
 
 
 
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
# Use the official Python base image
FROM python:3.9

# Install Git LFS
RUN apt-get update && apt-get install -y git-lfs

# Set the working directory
WORKDIR /app

# Copy requirements.txt into the container
COPY requirements.txt .

# Install the required packages
RUN pip install --no-cache-dir -r requirements.txt

# Set the git credential helper to "store"
RUN git config --global credential.helper store

# Copy the rest of the application files into the container
COPY . .

# Copy supervisord.conf into the container
COPY supervisord.conf .

# Set permissions on the log file
RUN touch /app/mylog.log /app/supervisord.log && chmod a+rwx /app/mylog.log /app/supervisord.log
RUN mkdir -p /.cache/huggingface

# Expose the desired port
EXPOSE 7860

# Run supervisord
CMD ["supervisord", "-c", "supervisord.conf"]