Update Dockerfile
Browse files- Dockerfile +4 -4
Dockerfile
CHANGED
@@ -1,6 +1,6 @@
|
|
1 |
FROM nocodb/nocodb:latest
|
2 |
|
3 |
-
ARG CACHEBUST=
|
4 |
|
5 |
# 设置环境变量
|
6 |
ENV WORKDIR=/usr/src/app \
|
@@ -16,8 +16,6 @@ ENV WORKDIR=/usr/src/app \
|
|
16 |
RUN --mount=type=secret,id=NC_S3_BUCKET_NAME,mode=0444,required=true \
|
17 |
--mount=type=secret,id=NC_S3_ACCESS_SECRET,mode=0444,required=true \
|
18 |
apk add --no-cache git curl nodejs npm \
|
19 |
-
&& chmod +x /tmp/s3_setup.sh && /tmp/s3_setup.sh \
|
20 |
-
&& rm -rf /tmp/hf-nocodb /tmp/*.sh \
|
21 |
&& git clone -b pro https://github.com/aigem/hf-nocodb.git /tmp/hf-nocodb \
|
22 |
# 复制src下的所有文件夹及文件到/tmp/
|
23 |
&& cp -r /tmp/hf-nocodb/src/* /tmp/ && cp /tmp/startup.sh /usr/src/appEntry/startup.sh \
|
@@ -28,7 +26,9 @@ RUN --mount=type=secret,id=NC_S3_BUCKET_NAME,mode=0444,required=true \
|
|
28 |
&& chmod +x /tmp/apiexec_setup.sh && /tmp/apiexec_setup.sh \
|
29 |
# 安装 sshx
|
30 |
&& chmod +x /tmp/sshx_setup.sh && /tmp/sshx_setup.sh \
|
31 |
-
#
|
|
|
|
|
32 |
&& chmod +x /tmp/rclone_setup.sh && /tmp/rclone_setup.sh
|
33 |
|
34 |
USER ${USER}
|
|
|
1 |
FROM nocodb/nocodb:latest
|
2 |
|
3 |
+
ARG CACHEBUST=100
|
4 |
|
5 |
# 设置环境变量
|
6 |
ENV WORKDIR=/usr/src/app \
|
|
|
16 |
RUN --mount=type=secret,id=NC_S3_BUCKET_NAME,mode=0444,required=true \
|
17 |
--mount=type=secret,id=NC_S3_ACCESS_SECRET,mode=0444,required=true \
|
18 |
apk add --no-cache git curl nodejs npm \
|
|
|
|
|
19 |
&& git clone -b pro https://github.com/aigem/hf-nocodb.git /tmp/hf-nocodb \
|
20 |
# 复制src下的所有文件夹及文件到/tmp/
|
21 |
&& cp -r /tmp/hf-nocodb/src/* /tmp/ && cp /tmp/startup.sh /usr/src/appEntry/startup.sh \
|
|
|
26 |
&& chmod +x /tmp/apiexec_setup.sh && /tmp/apiexec_setup.sh \
|
27 |
# 安装 sshx
|
28 |
&& chmod +x /tmp/sshx_setup.sh && /tmp/sshx_setup.sh \
|
29 |
+
# s3设置
|
30 |
+
&& chmod +x /tmp/s3_setup.sh && /tmp/s3_setup.sh \
|
31 |
+
# rclone安装与设置
|
32 |
&& chmod +x /tmp/rclone_setup.sh && /tmp/rclone_setup.sh
|
33 |
|
34 |
USER ${USER}
|