fahmiaziz98 commited on
Commit
56057a5
·
1 Parent(s): 24b7893

refactor dockerfile 3 fix permission user non root

Browse files
Files changed (1) hide show
  1. Dockerfile +2 -1
Dockerfile CHANGED
@@ -21,11 +21,12 @@ RUN set -ex \
21
  && apt-get update \
22
  && apt-get upgrade -y \
23
  && apt-get install -y libjpeg-dev zlib1g-dev \
24
- # 🔨 Buat folder ml-models untuk menyimpan model
25
  && mkdir -p /app/ml-models/tinybert-sentiment-analysis \
26
  /app/ml-models/tinybert-disaster-tweet \
27
  /app/ml-models/vit-human-pose-classification \
28
  && chown -R appuser:appgroup /app/ml-models \
 
29
  && apt-get autoremove -y \
30
  && apt-get clean -y \
31
  && rm -rf /var/lib/apt/lists/*
 
21
  && apt-get update \
22
  && apt-get upgrade -y \
23
  && apt-get install -y libjpeg-dev zlib1g-dev \
24
+ # 🔨 Buat folder ml-models dan subfolder-nya + set permission
25
  && mkdir -p /app/ml-models/tinybert-sentiment-analysis \
26
  /app/ml-models/tinybert-disaster-tweet \
27
  /app/ml-models/vit-human-pose-classification \
28
  && chown -R appuser:appgroup /app/ml-models \
29
+ && chmod -R u+w /app/ml-models
30
  && apt-get autoremove -y \
31
  && apt-get clean -y \
32
  && rm -rf /var/lib/apt/lists/*