File size: 665 Bytes
a72366a
 
68a397f
 
 
7eee229
 
 
 
a72366a
7eee229
 
 
1c5c9aa
68c4486
1c5c9aa
68c4486
a72366a
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
FROM python:3.10-slim

RUN apt-get -y update
RUN apt-get -y install git

RUN useradd -m -u 1000 user
USER user
ENV HOME=/home/user \
    PATH=/home/user/.local/bin:$PATH

WORKDIR $HOME/app
COPY --chown=user . $HOME/app
RUN pip install --no-cache-dir -r $HOME/app/requirements.txt
RUN mkdir -p $HOME/app/mirror_outputs/Mirror_Pretrain_AllExcluded_2/middle
RUN chmod -R 777 $HOME/app/mirror_outputs/Mirror_Pretrain_AllExcluded_2/middle
RUN mkdir -p $HOME/app/mirror_outputs/Mirror_Pretrain_AllExcluded_2/measures
RUN chmod -R 777 $HOME/app/mirror_outputs/Mirror_Pretrain_AllExcluded_2/measures

# start service
EXPOSE 7860
CMD ["python", "-m", "src.app.api_backend"]