File size: 711 Bytes
8678a61
 
 
5ac81e5
8678a61
 
 
f4c2b73
5ac81e5
8678a61
 
 
 
 
 
 
 
 
 
5ac81e5
8678a61
 
 
5ac81e5
8678a61
 
 
 
 
 
 
1f77318
 
8678a61
 
636038a
1f77318
8678a61
 
 
 
 
 
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
42
43
44
# Use the official Python 3.9 image
FROM nikolaik/python-nodejs:python3.11-nodejs21


# Copy the current directory contents into the container
COPY . /app

RUN chmod -R 777 /app/*

# Go into the front directory
WORKDIR /app/front

# RUN chmod -R 777 /app/*

# Run npm install
RUN npm install

RUN npm run build


# Go back to the root directory
WORKDIR /app


# Go into the api directory
WORKDIR /app/back

RUN apt-get update

RUN apt-get install cmake -y

RUN apt install unzip

RUN apt-get install 'ffmpeg' -y

RUN unzip output/checkpoints/model.zip -d  output/checkpoints/model

# Install requirements.txt 
RUN pip install --no-cache-dir --upgrade -r requirements.txt

EXPOSE 7860

CMD ["python", "main.py"]