Spaces:
Sleeping
Sleeping
Update Dockerfile
Browse files- Dockerfile +6 -12
Dockerfile
CHANGED
@@ -5,19 +5,13 @@ ARG NC_S3_ENDPOINT
|
|
5 |
ARG NC_S3_ACCESS_KEY
|
6 |
|
7 |
RUN apk add --no-cache git \
|
8 |
-
&& git clone https://github.com/aigem/hf-nocodb.git /tmp \
|
9 |
&& cp /tmp/hf-nocodb/src/* /tmp/ \
|
10 |
-
&&
|
11 |
-
|
12 |
-
|
13 |
-
|
14 |
-
|
15 |
-
RUN --mount=type=secret,id=NC_S3_BUCKET_NAME,mode=0444,required=true \
|
16 |
-
--mount=type=secret,id=NC_S3_ACCESS_SECRET,mode=0444,required=true \
|
17 |
-
/tmp/setup.sh && \
|
18 |
-
chmod +x /usr/src/appEntry/startup.sh && \
|
19 |
-
/tmp/s3_setup.sh && \
|
20 |
-
rm /tmp/setup.sh /tmp/s3_setup.sh
|
21 |
|
22 |
USER nocodb
|
23 |
|
|
|
5 |
ARG NC_S3_ACCESS_KEY
|
6 |
|
7 |
RUN apk add --no-cache git \
|
8 |
+
&& git clone https://github.com/aigem/hf-nocodb.git /tmp/hf-nocodb \
|
9 |
&& cp /tmp/hf-nocodb/src/* /tmp/ \
|
10 |
+
&& cp /tmp/startup.sh /usr/src/appEntry/startup.sh \
|
11 |
+
&& chmod +x /usr/src/appEntry/startup.sh && rm -rf /tmp/hf-nocodb \
|
12 |
+
&& --mount=type=secret,id=NC_S3_BUCKET_NAME,mode=0444,required=true \
|
13 |
+
&& --mount=type=secret,id=NC_S3_ACCESS_SECRET,mode=0444,required=true \
|
14 |
+
&& /tmp/setup.sh && /tmp/s3_setup.sh && rm /tmp/setup.sh /tmp/s3_setup.sh
|
|
|
|
|
|
|
|
|
|
|
|
|
15 |
|
16 |
USER nocodb
|
17 |
|