This repository was archived by the owner on Dec 18, 2023. It is now read-only.
File tree 2 files changed +6
-6
lines changed
2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -14,12 +14,7 @@ COPY entrypoint.sh /bin
14
14
COPY config.json ${HOME}
15
15
COPY wait-for-it.sh /
16
16
17
- RUN sed -i "s/3000/" ${PORT}"/g" ${HOME}/config.json && \
18
- sed -i
"s/[email protected] /" ${ADMIN_EMAIL}
"/g" ${HOME}/config.json && \
19
- sed -i "s/mongo/" ${DB_SERVER}"/g" ${HOME}/config.json && \
20
- sed -i "s/yapi/" ${DB_NAME}"/g" ${HOME}/config.json && \
21
- sed -i "s/27017/" ${DB_PORT}"/g" ${HOME}/config.json && \
22
- npm config set registry https://registry.npmmirror.com && \
17
+ RUN npm config set registry https://registry.npmmirror.com && \
23
18
npm install -g yapi-cli && \
24
19
npm cache clean --force
25
20
Original file line number Diff line number Diff line change 1
1
#! /bin/sh
2
2
if [ ! -e " init.lock" ]
3
3
then
4
+ sed -i " s/3000/" ${PORT} " /g" ${HOME} /config.json
5
+ sed -i
" s/[email protected] /" ${ADMIN_EMAIL} " /g" ${HOME} /config.json
6
+ sed -i " s/mongo/" ${DB_SERVER} " /g" ${HOME} /config.json
7
+ sed -i " s/yapi/" ${DB_NAME} " /g" ${HOME} /config.json
8
+ sed -i " s/27017/" ${DB_PORT} " /g" ${HOME} /config.json
4
9
yapi install -v ${VERSION}
5
10
touch init.lock
6
11
fi
You can’t perform that action at this time.
0 commit comments