Update Dockerfile
Browse files- Dockerfile +4 -6
Dockerfile
CHANGED
@@ -2,10 +2,10 @@
|
|
2 |
FROM nocodb/nocodb:latest
|
3 |
|
4 |
# 修改这个参数可以进行全新的部署
|
5 |
-
ARG CACHEBUST=
|
6 |
|
7 |
# 构建时可注入的参数(与示例文件格式一致)
|
8 |
-
ARG PORT
|
9 |
ARG NC_DB=$DB_pgurl
|
10 |
ARG NC_AUTH_JWT_SECRET="569a1821-1234-5678-87ab-eb857f20a010"
|
11 |
|
@@ -16,15 +16,13 @@ USER root
|
|
16 |
RUN mkdir -p /usr/app && \
|
17 |
chown -R node:node /usr/app && \
|
18 |
chmod +x /usr/src/appEntry/start.sh && \
|
19 |
-
cat /usr/src/appEntry/start.sh
|
|
|
20 |
# chmod -R 777 /usr/app
|
21 |
|
22 |
# 切换回 node 用户
|
23 |
USER node
|
24 |
|
25 |
-
# 暴露容器端口(与 PORT 变量一致)
|
26 |
-
EXPOSE ${NC_PORT}
|
27 |
-
|
28 |
# 保留原镜像的入口点和 CMD(确保容器正常启动)
|
29 |
ENTRYPOINT ["/usr/bin/dumb-init","--"]
|
30 |
CMD ["/usr/src/appEntry/start.sh"]
|
|
|
2 |
FROM nocodb/nocodb:latest
|
3 |
|
4 |
# 修改这个参数可以进行全新的部署
|
5 |
+
ARG CACHEBUST=5
|
6 |
|
7 |
# 构建时可注入的参数(与示例文件格式一致)
|
8 |
+
ARG PORT=7860
|
9 |
ARG NC_DB=$DB_pgurl
|
10 |
ARG NC_AUTH_JWT_SECRET="569a1821-1234-5678-87ab-eb857f20a010"
|
11 |
|
|
|
16 |
RUN mkdir -p /usr/app && \
|
17 |
chown -R node:node /usr/app && \
|
18 |
chmod +x /usr/src/appEntry/start.sh && \
|
19 |
+
cat /usr/src/appEntry/start.sh && \
|
20 |
+
chmod +x docker/main.js
|
21 |
# chmod -R 777 /usr/app
|
22 |
|
23 |
# 切换回 node 用户
|
24 |
USER node
|
25 |
|
|
|
|
|
|
|
26 |
# 保留原镜像的入口点和 CMD(确保容器正常启动)
|
27 |
ENTRYPOINT ["/usr/bin/dumb-init","--"]
|
28 |
CMD ["/usr/src/appEntry/start.sh"]
|