Spaces:
Sleeping
Sleeping
fix: update docker build
Browse files- Dockerfile +3 -2
Dockerfile
CHANGED
@@ -8,12 +8,14 @@ RUN apt update -qqy \
|
|
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}
|
19 |
COPY flowsettings.py /app
|
@@ -21,6 +23,5 @@ COPY flowsettings.py /app
|
|
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"]
|
|
|
8 |
apt-get clean && \
|
9 |
apt-get autoremove
|
10 |
|
11 |
+
RUN --mount=type=ssh mkdir -p ${APP_DATA_DIR}
|
12 |
|
13 |
RUN useradd -m -u 1000 user
|
14 |
USER user
|
15 |
WORKDIR /app
|
16 |
+
RUN --mount=type=ssh chown -R user:user /app
|
17 |
+
RUN --mount=type=ssh chown -R user:user ${APP_DATA_DIR}
|
18 |
|
|
|
19 |
|
20 |
COPY ktem_app_data.zip ${APP_DATA_DIR}
|
21 |
COPY flowsettings.py /app
|
|
|
23 |
RUN --mount=type=ssh cd ${APP_DATA_DIR} \
|
24 |
&& unzip ktem_app_data.zip \
|
25 |
&& rm ktem_app_data.zip
|
|
|
26 |
|
27 |
ENTRYPOINT ["python", "app.py"]
|