fix docker file

This commit is contained in:
Simon Larsen
2022-12-16 13:46:01 +05:30
parent ce0e571bbe
commit a468ca53fb
4 changed files with 32 additions and 11 deletions

View File

@@ -65,8 +65,14 @@ RUN npm run compile
RUN mkdir /usr/src/CommonUI
WORKDIR /usr/src/CommonUI
COPY ./CommonUI/package*.json /usr/src/CommonUI/
RUN npm install --force
COPY ./CommonUI /usr/src/CommonUI
RUN npm install
RUN mkdir /usr/src/CommonUI/temp
COPY ./CommonUI /usr/src/CommonUI/temp
# Remove node modules copies from local computer.
RUN rm -rf /usr/src/CommonUI/temp/node_modules
RUN cp -a /usr/src/CommonUI/temp/. /usr/src/CommonUI/
RUN cd /usr/src/CommonUI/
RUN rm -rf /usr/src/CommonUI/temp/
RUN npm run compile

View File

@@ -65,11 +65,16 @@ RUN npm run compile
RUN mkdir /usr/src/CommonUI
WORKDIR /usr/src/CommonUI
COPY ./CommonUI/package*.json /usr/src/CommonUI/
RUN npm install --force
COPY ./CommonUI /usr/src/CommonUI
RUN npm install
RUN mkdir /usr/src/CommonUI/temp
COPY ./CommonUI /usr/src/CommonUI/temp
# Remove node modules copies from local computer.
RUN rm -rf /usr/src/CommonUI/temp/node_modules
RUN cp -a /usr/src/CommonUI/temp/. /usr/src/CommonUI/
RUN cd /usr/src/CommonUI/
RUN rm -rf /usr/src/CommonUI/temp/
RUN npm run compile
#SET ENV Variables
ENV PRODUCTION=true
ENV PUPPETEER_SKIP_CHROMIUM_DOWNLOAD=true

View File

@@ -65,11 +65,16 @@ RUN npm run compile
RUN mkdir /usr/src/CommonUI
WORKDIR /usr/src/CommonUI
COPY ./CommonUI/package*.json /usr/src/CommonUI/
RUN npm install --force
COPY ./CommonUI /usr/src/CommonUI
RUN npm install
RUN mkdir /usr/src/CommonUI/temp
COPY ./CommonUI /usr/src/CommonUI/temp
# Remove node modules copies from local computer.
RUN rm -rf /usr/src/CommonUI/temp/node_modules
RUN cp -a /usr/src/CommonUI/temp/. /usr/src/CommonUI/
RUN cd /usr/src/CommonUI/
RUN rm -rf /usr/src/CommonUI/temp/
RUN npm run compile
#SET ENV Variables
ENV PRODUCTION=true
ENV PUPPETEER_SKIP_CHROMIUM_DOWNLOAD=true

View File

@@ -64,10 +64,15 @@ RUN npm run compile
RUN mkdir /usr/src/CommonUI
WORKDIR /usr/src/CommonUI
COPY ./CommonUI/package*.json /usr/src/CommonUI/
RUN npm install --force
COPY ./CommonUI /usr/src/CommonUI
RUN npm install
RUN mkdir /usr/src/CommonUI/temp
COPY ./CommonUI /usr/src/CommonUI/temp
# Remove node modules copies from local computer.
RUN rm -rf /usr/src/CommonUI/temp/node_modules
RUN cp -a /usr/src/CommonUI/temp/. /usr/src/CommonUI/
RUN cd /usr/src/CommonUI/
RUN rm -rf /usr/src/CommonUI/temp/
RUN npm run compile
#SET ENV Variables
ENV PRODUCTION=true
ENV PUPPETEER_SKIP_CHROMIUM_DOWNLOAD=true