mirror of
https://github.com/whyour/qinglong.git
synced 2025-05-23 14:56:07 +08:00
修改dockerfile
This commit is contained in:
parent
57fd8f378c
commit
e2b9578253
|
@ -18,11 +18,7 @@ RUN git clone -b ${QL_BRANCH} ${QL_URL} ${QL_DIR} \
|
|||
&& cp -f .env.example .env \
|
||||
&& chmod 777 ${QL_DIR}/shell/*.sh \
|
||||
&& chmod 777 ${QL_DIR}/docker/*.sh \
|
||||
&& sed -i '/sqlite3/d' package.json \
|
||||
&& 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 . \
|
||||
&& cp -rf /node_modules ./ \
|
||||
&& pnpm install --prod \
|
||||
&& rm -rf /root/.pnpm-store \
|
||||
&& 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 \
|
||||
PS1="\u@\h:\w \$ "
|
||||
|
||||
COPY package.json /
|
||||
|
||||
RUN set -x \
|
||||
&& 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" \
|
||||
&& npm install -g pnpm \
|
||||
&& pnpm install -g pm2 \
|
||||
&& pnpm install -g ts-node typescript tslib sqlite3 \
|
||||
&& rm -rf /root/.npm \
|
||||
&& pnpm install -g ts-node typescript tslib \
|
||||
&& cd / && pnpm install --prod \
|
||||
&& rm -rf /root/.npm
|
||||
|
||||
CMD [ "node" ]
|
||||
|
|
Loading…
Reference in New Issue
Block a user