trducng commited on
Commit
a869277
1 Parent(s): ffbe1f3

fix: update docker build

Browse files
Files changed (1) hide show
  1. Dockerfile +5 -0
Dockerfile CHANGED
@@ -8,7 +8,11 @@ RUN apt update -qqy \
8
  apt-get clean && \
9
  apt-get autoremove
10
 
 
 
 
11
  WORKDIR /app
 
12
  RUN --mount=type=ssh mkdir -p ${APP_DATA_DIR}
13
 
14
  COPY ktem_app_data.zip ${APP_DATA_DIR}
@@ -17,5 +21,6 @@ COPY flowsettings.py /app
17
  RUN --mount=type=ssh cd ${APP_DATA_DIR} \
18
  && unzip ktem_app_data.zip \
19
  && rm ktem_app_data.zip
 
20
 
21
  ENTRYPOINT ["python", "app.py"]
 
8
  apt-get clean && \
9
  apt-get autoremove
10
 
11
+
12
+ RUN useradd -m -u 1000 user
13
+ USER user
14
  WORKDIR /app
15
+
16
  RUN --mount=type=ssh mkdir -p ${APP_DATA_DIR}
17
 
18
  COPY ktem_app_data.zip ${APP_DATA_DIR}
 
21
  RUN --mount=type=ssh cd ${APP_DATA_DIR} \
22
  && unzip ktem_app_data.zip \
23
  && rm ktem_app_data.zip
24
+ RUN --mount=type=ssh chown -R user:user /app
25
 
26
  ENTRYPOINT ["python", "app.py"]