tebakaja commited on
Commit
6eaeb8e
·
1 Parent(s): d75dbac

migrate: GCP to Hugging Face

Browse files
Files changed (1) hide show
  1. Dockerfile +4 -5
Dockerfile CHANGED
@@ -5,9 +5,6 @@ LABEL team="cloud-computing-team"
5
  LABEL backend_engineer="Putu Wira Pratama Putra"
6
  LABEL Infra_engineer="Al-Fariqy Raihan Azhwar"
7
 
8
- ENV PYTHONDONTWRITEBYTECODE 1
9
- ENV PYTHONUNBUFFERED 1
10
-
11
  RUN useradd -m -u 1000 user
12
 
13
  WORKDIR /etc/docpet_backend_service
@@ -21,9 +18,11 @@ RUN pip install --no-cache-dir --upgrade -r linux.requirements.txt
21
 
22
  COPY --chown=user . /etc/docpet_backend_service/
23
 
24
- RUN wget -O /etc/docpet_backend_service/ml_models/model.h5 \
25
  https://github.com/belajarqywok/mbadhog/raw/main/model.h5
26
 
 
 
27
  EXPOSE 7860
28
 
29
- CMD [ "alembic upgrade head && uvicorn app:app --host 0.0.0.0 --port 7860 --workers 30" ]
 
5
  LABEL backend_engineer="Putu Wira Pratama Putra"
6
  LABEL Infra_engineer="Al-Fariqy Raihan Azhwar"
7
 
 
 
 
8
  RUN useradd -m -u 1000 user
9
 
10
  WORKDIR /etc/docpet_backend_service
 
18
 
19
  COPY --chown=user . /etc/docpet_backend_service/
20
 
21
+ RUN --chown=user wget -O /etc/docpet_backend_service/ml_models/model.h5 \
22
  https://github.com/belajarqywok/mbadhog/raw/main/model.h5
23
 
24
+ RUN --chown=user alembic upgrade head
25
+
26
  EXPOSE 7860
27
 
28
+ CMD [ "uvicorn app:app --host 0.0.0.0 --port 7860 --workers 30" ]