updated dockerfiles to fix the dependecy problem

This commit is contained in:
Kasra Bigdeli
2019-01-26 22:33:27 -08:00
parent 50c7c6c44a
commit 68de08bbab
2 changed files with 6 additions and 4 deletions
+3 -2
View File
@@ -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
+3 -2
View File
@@ -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