mirror of
https://github.com/caprover/caprover
synced 2026-05-03 10:10:29 +00:00
Use npm for backend
This commit is contained in:
@@ -27,7 +27,7 @@ RUN mkdir -p /usr/src/app-frontend && cd /usr/src/app-frontend && \
|
||||
git clone https://github.com/githubsaturn/caprover-frontend.git && \
|
||||
cd caprover-frontend && \
|
||||
git log --max-count=1 && \
|
||||
yarn install --frozen-lockfile --production && npm cache clean --force && \
|
||||
yarn install --frozen-lockfile --production && yarn cache clean --all && \
|
||||
npm run build && \
|
||||
mv ./build ../../app/dist-frontend && \
|
||||
cd / && \
|
||||
|
||||
@@ -21,7 +21,7 @@ RUN mkdir -p /usr/src/app-frontend && cd /usr/src/app-frontend && \
|
||||
git clone https://github.com/githubsaturn/caprover-frontend.git && \
|
||||
cd caprover-frontend && \
|
||||
git reset --hard ${FRONTEND_COMMIT_HASH} && \
|
||||
yarn install --frozen-lockfile --production && npm cache clean --force && \
|
||||
yarn install --frozen-lockfile --production && yarn cache clean --all && \
|
||||
npm run build && \
|
||||
mv ./build ../../app/dist-frontend && \
|
||||
cd / && \
|
||||
|
||||
Reference in New Issue
Block a user