File size: 824 Bytes
b6f0f70
 
 
 
 
 
 
 
 
 
 
 
6139771
b6f0f70
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
FROM python:3.9-bullseye

LABEL organization="docpet"
LABEL team="cloud-computing-team"
LABEL backend_engineer="Putu Wira Pratama Putra"
LABEL Infra_engineer="Al-Fariqy Raihan Azhwar"

ENV PYTHONDONTWRITEBYTECODE 1
ENV PYTHONUNBUFFERED 1

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

WORKDIR /etc/docpet_backend_service

RUN python3 -m pip install --upgrade pip

COPY --chown=user requirements/linux.requirements.txt \
    /etc/docpet_backend_service/

RUN pip3 install -r linux.requirements.txt

COPY --chown=user . /etc/docpet_backend_service/

RUN wget -O /etc/docpet_backend_service/ml_models/model.h5 \
  https://github.com/belajarqywok/mbadhog/raw/main/model.h5

EXPOSE 7860

CMD [ "/bin/bash", "-c", "alembic upgrade head && uvicorn app:app --host 0.0.0.0 --port 7860 --workers 30" ]