mirror of
https://github.com/whyour/qinglong.git
synced 2025-05-25 00:08:13 +08:00
修改dockerfile
This commit is contained in:
parent
0914075cf6
commit
25bb0972b9
|
@ -18,11 +18,7 @@ RUN git clone -b ${QL_BRANCH} ${QL_URL} ${QL_DIR} \
|
||||||
&& cp -f .env.example .env \
|
&& cp -f .env.example .env \
|
||||||
&& chmod 777 ${QL_DIR}/shell/*.sh \
|
&& chmod 777 ${QL_DIR}/shell/*.sh \
|
||||||
&& chmod 777 ${QL_DIR}/docker/*.sh \
|
&& chmod 777 ${QL_DIR}/docker/*.sh \
|
||||||
&& sed -i '/sqlite3/d' package.json \
|
&& cp -rf /node_modules ./ \
|
||||||
&& pnpm install --prod \
|
|
||||||
&& cp -rf /usr/local/pnpm-global/5/node_modules/sqlite3 ./node_modules/ \
|
|
||||||
&& cp -rf /usr/local/pnpm-global/5/node_modules/.pnpm/sqlite* ./node_modules/.pnpm/ \
|
|
||||||
&& git checkout . \
|
|
||||||
&& pnpm install --prod \
|
&& pnpm install --prod \
|
||||||
&& rm -rf /root/.pnpm-store \
|
&& rm -rf /root/.pnpm-store \
|
||||||
&& git clone -b ${QL_BRANCH} https://github.com/${QL_MAINTAINER}/qinglong-static.git /static \
|
&& git clone -b ${QL_BRANCH} https://github.com/${QL_MAINTAINER}/qinglong-static.git /static \
|
||||||
|
|
|
@ -7,6 +7,7 @@ ENV PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin \
|
||||||
SHELL=/bin/bash \
|
SHELL=/bin/bash \
|
||||||
PS1="\u@\h:\w \$ "
|
PS1="\u@\h:\w \$ "
|
||||||
|
|
||||||
|
COPY package.json /
|
||||||
|
|
||||||
RUN set -x \
|
RUN set -x \
|
||||||
&& sed -i 's/dl-cdn.alpinelinux.org/mirrors.tuna.tsinghua.edu.cn/g' /etc/apk/repositories \
|
&& sed -i 's/dl-cdn.alpinelinux.org/mirrors.tuna.tsinghua.edu.cn/g' /etc/apk/repositories \
|
||||||
|
@ -37,7 +38,8 @@ RUN set -x \
|
||||||
&& git config --global user.name "qinglong" \
|
&& git config --global user.name "qinglong" \
|
||||||
&& npm install -g pnpm \
|
&& npm install -g pnpm \
|
||||||
&& pnpm install -g pm2 \
|
&& pnpm install -g pm2 \
|
||||||
&& pnpm install -g ts-node typescript tslib sqlite3 \
|
&& pnpm install -g ts-node typescript tslib \
|
||||||
&& rm -rf /root/.npm \
|
&& cd / && pnpm install --prod \
|
||||||
|
&& rm -rf /root/.npm
|
||||||
|
|
||||||
CMD [ "node" ]
|
CMD [ "node" ]
|
||||||
|
|
Loading…
Reference in New Issue
Block a user