mirror of
https://github.com/caprover/caprover
synced 2026-05-03 18:20:32 +00:00
updated dockerfiles to fix the dependecy problem
This commit is contained in:
@@ -17,12 +17,13 @@ RUN mv ./edge-override.json ./config-override.json
|
||||
# This quick hack invalidates the cache
|
||||
ADD https://www.google.com /time.now
|
||||
|
||||
RUN git clone https://github.com/githubsaturn/caprover-frontend.git && \
|
||||
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 && \
|
||||
npm install && npm cache clean --force && \
|
||||
npm run build && \
|
||||
mv ./build ../dist-frontend
|
||||
mv ./build ../../app/dist-frontend
|
||||
|
||||
|
||||
ENV NODE_ENV production
|
||||
|
||||
@@ -16,12 +16,13 @@ RUN npm run build
|
||||
|
||||
ENV FRONTEND_COMMIT_HASH 8c0b603b29bde8ed76ece12f7ece06f8d00bcfda
|
||||
|
||||
RUN git clone https://github.com/githubsaturn/caprover-frontend.git && \
|
||||
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} && \
|
||||
npm install && npm cache clean --force && \
|
||||
npm run build && \
|
||||
mv ./build ../dist-frontend
|
||||
mv ./build ../../app/dist-frontend
|
||||
|
||||
|
||||
ENV NODE_ENV production
|
||||
|
||||
Reference in New Issue
Block a user