mirror of
https://github.com/OneUptime/oneuptime
synced 2024-11-21 14:49:07 +00:00
revert changes
This commit is contained in:
parent
529aa72b7a
commit
0fe24d1046
@ -3,7 +3,7 @@
|
||||
#
|
||||
|
||||
# Pull base image nodejs image.
|
||||
FROM node:alpine
|
||||
FROM node:18-alpine
|
||||
|
||||
# Install bash.
|
||||
RUN apk update && apk add bash && apk add curl
|
||||
@ -16,33 +16,22 @@ RUN npm install nodemon -g
|
||||
|
||||
RUN mkdir /usr/src
|
||||
|
||||
# Install Common
|
||||
# Install common
|
||||
RUN mkdir /usr/src/Common
|
||||
WORKDIR /usr/src/Common
|
||||
COPY ./Common/package*.json /usr/src/Common/
|
||||
RUN npm install
|
||||
RUN mkdir /usr/src/Common/temp
|
||||
COPY ./Common /usr/src/Common/temp
|
||||
# Remove node modules copies from local computer.
|
||||
RUN rm -rf /usr/src/Common/temp/node_modules
|
||||
RUN cp -a /usr/src/Common/temp/. /usr/src/Common/
|
||||
RUN cd /usr/src/Common/
|
||||
RUN rm -rf /usr/src/Common/temp/
|
||||
RUN npm run compile
|
||||
COPY ./Common /usr/src/Common
|
||||
|
||||
|
||||
|
||||
# Install Model
|
||||
RUN mkdir /usr/src/Model
|
||||
WORKDIR /usr/src/Model
|
||||
COPY ./Model/package*.json /usr/src/Model/
|
||||
RUN npm install
|
||||
RUN mkdir /usr/src/Model/temp
|
||||
COPY ./Model /usr/src/Model/temp
|
||||
# Remove node modules copies from local computer.
|
||||
RUN rm -rf /usr/src/Model/temp/node_modules
|
||||
RUN cp -a /usr/src/Model/temp/. /usr/src/Model/
|
||||
RUN cd /usr/src/Model/
|
||||
RUN rm -rf /usr/src/Model/temp/
|
||||
RUN npm run compile
|
||||
COPY ./Model /usr/src/Model
|
||||
|
||||
|
||||
|
||||
# Install CommonServer
|
||||
@ -50,14 +39,8 @@ RUN mkdir /usr/src/CommonServer
|
||||
WORKDIR /usr/src/CommonServer
|
||||
COPY ./CommonServer/package*.json /usr/src/CommonServer/
|
||||
RUN npm install
|
||||
RUN mkdir /usr/src/CommonServer/temp
|
||||
COPY ./CommonServer /usr/src/CommonServer/temp
|
||||
# Remove node modules copies from local computer.
|
||||
RUN rm -rf /usr/src/CommonServer/temp/node_modules
|
||||
RUN cp -a /usr/src/CommonServer/temp/. /usr/src/CommonServer/
|
||||
RUN cd /usr/src/CommonServer/
|
||||
RUN rm -rf /usr/src/CommonServer/temp/
|
||||
RUN npm run compile
|
||||
COPY ./CommonServer /usr/src/CommonServer
|
||||
|
||||
|
||||
|
||||
|
||||
@ -66,14 +49,8 @@ RUN mkdir /usr/src/CommonUI
|
||||
WORKDIR /usr/src/CommonUI
|
||||
COPY ./CommonUI/package*.json /usr/src/CommonUI/
|
||||
RUN npm install --force
|
||||
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
|
||||
COPY ./CommonUI /usr/src/CommonUI
|
||||
|
||||
|
||||
|
||||
#SET ENV Variables
|
||||
|
@ -3,7 +3,7 @@
|
||||
#
|
||||
|
||||
# Pull base image nodejs image.
|
||||
FROM node:alpine
|
||||
FROM node:18-alpine
|
||||
|
||||
# Install bash.
|
||||
RUN apk update && apk add bash && apk add curl
|
||||
@ -16,33 +16,21 @@ RUN npm install nodemon -g
|
||||
|
||||
RUN mkdir /usr/src
|
||||
|
||||
# Install Common
|
||||
# Install common
|
||||
RUN mkdir /usr/src/Common
|
||||
WORKDIR /usr/src/Common
|
||||
COPY ./Common/package*.json /usr/src/Common/
|
||||
RUN npm install
|
||||
RUN mkdir /usr/src/Common/temp
|
||||
COPY ./Common /usr/src/Common/temp
|
||||
# Remove node modules copies from local computer.
|
||||
RUN rm -rf /usr/src/Common/temp/node_modules
|
||||
RUN cp -a /usr/src/Common/temp/. /usr/src/Common/
|
||||
RUN cd /usr/src/Common/
|
||||
RUN rm -rf /usr/src/Common/temp/
|
||||
RUN npm run compile
|
||||
COPY ./Common /usr/src/Common
|
||||
|
||||
|
||||
# Install Model
|
||||
RUN mkdir /usr/src/Model
|
||||
WORKDIR /usr/src/Model
|
||||
COPY ./Model/package*.json /usr/src/Model/
|
||||
RUN npm install
|
||||
RUN mkdir /usr/src/Model/temp
|
||||
COPY ./Model /usr/src/Model/temp
|
||||
# Remove node modules copies from local computer.
|
||||
RUN rm -rf /usr/src/Model/temp/node_modules
|
||||
RUN cp -a /usr/src/Model/temp/. /usr/src/Model/
|
||||
RUN cd /usr/src/Model/
|
||||
RUN rm -rf /usr/src/Model/temp/
|
||||
RUN npm run compile
|
||||
COPY ./Model /usr/src/Model
|
||||
|
||||
|
||||
|
||||
# Install CommonServer
|
||||
@ -50,14 +38,8 @@ RUN mkdir /usr/src/CommonServer
|
||||
WORKDIR /usr/src/CommonServer
|
||||
COPY ./CommonServer/package*.json /usr/src/CommonServer/
|
||||
RUN npm install
|
||||
RUN mkdir /usr/src/CommonServer/temp
|
||||
COPY ./CommonServer /usr/src/CommonServer/temp
|
||||
# Remove node modules copies from local computer.
|
||||
RUN rm -rf /usr/src/CommonServer/temp/node_modules
|
||||
RUN cp -a /usr/src/CommonServer/temp/. /usr/src/CommonServer/
|
||||
RUN cd /usr/src/CommonServer/
|
||||
RUN rm -rf /usr/src/CommonServer/temp/
|
||||
RUN npm run compile
|
||||
COPY ./CommonServer /usr/src/CommonServer
|
||||
|
||||
|
||||
|
||||
|
||||
@ -66,14 +48,8 @@ RUN mkdir /usr/src/CommonUI
|
||||
WORKDIR /usr/src/CommonUI
|
||||
COPY ./CommonUI/package*.json /usr/src/CommonUI/
|
||||
RUN npm install --force
|
||||
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
|
||||
COPY ./CommonUI /usr/src/CommonUI
|
||||
|
||||
|
||||
#SET ENV Variables
|
||||
ENV PRODUCTION=true
|
||||
|
@ -3,7 +3,7 @@
|
||||
#
|
||||
|
||||
# Pull base image nodejs image.
|
||||
FROM node:alpine
|
||||
FROM node:18-alpine
|
||||
|
||||
# Install bash.
|
||||
RUN apk update && apk add bash && apk add curl
|
||||
@ -20,33 +20,21 @@ RUN npm install nodemon -g
|
||||
|
||||
RUN mkdir /usr/src
|
||||
|
||||
# Install Common
|
||||
# Install common
|
||||
RUN mkdir /usr/src/Common
|
||||
WORKDIR /usr/src/Common
|
||||
COPY ./Common/package*.json /usr/src/Common/
|
||||
RUN npm install
|
||||
RUN mkdir /usr/src/Common/temp
|
||||
COPY ./Common /usr/src/Common/temp
|
||||
# Remove node modules copies from local computer.
|
||||
RUN rm -rf /usr/src/Common/temp/node_modules
|
||||
RUN cp -a /usr/src/Common/temp/. /usr/src/Common/
|
||||
RUN cd /usr/src/Common/
|
||||
RUN rm -rf /usr/src/Common/temp/
|
||||
RUN npm run compile
|
||||
COPY ./Common /usr/src/Common
|
||||
|
||||
|
||||
# Install Model
|
||||
RUN mkdir /usr/src/Model
|
||||
WORKDIR /usr/src/Model
|
||||
COPY ./Model/package*.json /usr/src/Model/
|
||||
RUN npm install
|
||||
RUN mkdir /usr/src/Model/temp
|
||||
COPY ./Model /usr/src/Model/temp
|
||||
# Remove node modules copies from local computer.
|
||||
RUN rm -rf /usr/src/Model/temp/node_modules
|
||||
RUN cp -a /usr/src/Model/temp/. /usr/src/Model/
|
||||
RUN cd /usr/src/Model/
|
||||
RUN rm -rf /usr/src/Model/temp/
|
||||
RUN npm run compile
|
||||
COPY ./Model /usr/src/Model
|
||||
|
||||
|
||||
|
||||
# Install CommonServer
|
||||
@ -54,14 +42,8 @@ RUN mkdir /usr/src/CommonServer
|
||||
WORKDIR /usr/src/CommonServer
|
||||
COPY ./CommonServer/package*.json /usr/src/CommonServer/
|
||||
RUN npm install
|
||||
RUN mkdir /usr/src/CommonServer/temp
|
||||
COPY ./CommonServer /usr/src/CommonServer/temp
|
||||
# Remove node modules copies from local computer.
|
||||
RUN rm -rf /usr/src/CommonServer/temp/node_modules
|
||||
RUN cp -a /usr/src/CommonServer/temp/. /usr/src/CommonServer/
|
||||
RUN cd /usr/src/CommonServer/
|
||||
RUN rm -rf /usr/src/CommonServer/temp/
|
||||
RUN npm run compile
|
||||
COPY ./CommonServer /usr/src/CommonServer
|
||||
|
||||
|
||||
|
||||
#SET ENV Variables
|
||||
|
@ -1,5 +1,5 @@
|
||||
# Pull base image nodejs image.
|
||||
FROM node:alpine
|
||||
FROM node:18-alpine
|
||||
|
||||
# Install bash.
|
||||
RUN apk update && apk add bash && apk add curl
|
||||
@ -12,33 +12,21 @@ RUN npm install nodemon -g
|
||||
|
||||
RUN mkdir /usr/src
|
||||
|
||||
# Install Common
|
||||
# Install common
|
||||
RUN mkdir /usr/src/Common
|
||||
WORKDIR /usr/src/Common
|
||||
COPY ./Common/package*.json /usr/src/Common/
|
||||
RUN npm install
|
||||
RUN mkdir /usr/src/Common/temp
|
||||
COPY ./Common /usr/src/Common/temp
|
||||
# Remove node modules copies from local computer.
|
||||
RUN rm -rf /usr/src/Common/temp/node_modules
|
||||
RUN cp -a /usr/src/Common/temp/. /usr/src/Common/
|
||||
RUN cd /usr/src/Common/
|
||||
RUN rm -rf /usr/src/Common/temp/
|
||||
RUN npm run compile
|
||||
COPY ./Common /usr/src/Common
|
||||
|
||||
|
||||
# Install Model
|
||||
RUN mkdir /usr/src/Model
|
||||
WORKDIR /usr/src/Model
|
||||
COPY ./Model/package*.json /usr/src/Model/
|
||||
RUN npm install
|
||||
RUN mkdir /usr/src/Model/temp
|
||||
COPY ./Model /usr/src/Model/temp
|
||||
# Remove node modules copies from local computer.
|
||||
RUN rm -rf /usr/src/Model/temp/node_modules
|
||||
RUN cp -a /usr/src/Model/temp/. /usr/src/Model/
|
||||
RUN cd /usr/src/Model/
|
||||
RUN rm -rf /usr/src/Model/temp/
|
||||
RUN npm run compile
|
||||
COPY ./Model /usr/src/Model
|
||||
|
||||
|
||||
|
||||
# Install CommonServer
|
||||
@ -46,14 +34,8 @@ RUN mkdir /usr/src/CommonServer
|
||||
WORKDIR /usr/src/CommonServer
|
||||
COPY ./CommonServer/package*.json /usr/src/CommonServer/
|
||||
RUN npm install
|
||||
RUN mkdir /usr/src/CommonServer/temp
|
||||
COPY ./CommonServer /usr/src/CommonServer/temp
|
||||
# Remove node modules copies from local computer.
|
||||
RUN rm -rf /usr/src/CommonServer/temp/node_modules
|
||||
RUN cp -a /usr/src/CommonServer/temp/. /usr/src/CommonServer/
|
||||
RUN cd /usr/src/CommonServer/
|
||||
RUN rm -rf /usr/src/CommonServer/temp/
|
||||
RUN npm run compile
|
||||
COPY ./CommonServer /usr/src/CommonServer
|
||||
|
||||
|
||||
|
||||
ENV PUPPETEER_SKIP_CHROMIUM_DOWNLOAD=true
|
||||
|
@ -3,7 +3,7 @@
|
||||
#
|
||||
|
||||
# Pull base image nodejs image.
|
||||
FROM node:alpine
|
||||
FROM node:18-alpine
|
||||
|
||||
# Install bash.
|
||||
RUN apk update && apk add bash && apk add curl
|
||||
@ -16,33 +16,21 @@ RUN npm install nodemon -g
|
||||
|
||||
RUN mkdir /usr/src
|
||||
|
||||
# Install Common
|
||||
# Install common
|
||||
RUN mkdir /usr/src/Common
|
||||
WORKDIR /usr/src/Common
|
||||
COPY ./Common/package*.json /usr/src/Common/
|
||||
RUN npm install
|
||||
RUN mkdir /usr/src/Common/temp
|
||||
COPY ./Common /usr/src/Common/temp
|
||||
# Remove node modules copies from local computer.
|
||||
RUN rm -rf /usr/src/Common/temp/node_modules
|
||||
RUN cp -a /usr/src/Common/temp/. /usr/src/Common/
|
||||
RUN cd /usr/src/Common/
|
||||
RUN rm -rf /usr/src/Common/temp/
|
||||
RUN npm run compile
|
||||
COPY ./Common /usr/src/Common
|
||||
|
||||
|
||||
# Install Model
|
||||
RUN mkdir /usr/src/Model
|
||||
WORKDIR /usr/src/Model
|
||||
COPY ./Model/package*.json /usr/src/Model/
|
||||
RUN npm install
|
||||
RUN mkdir /usr/src/Model/temp
|
||||
COPY ./Model /usr/src/Model/temp
|
||||
# Remove node modules copies from local computer.
|
||||
RUN rm -rf /usr/src/Model/temp/node_modules
|
||||
RUN cp -a /usr/src/Model/temp/. /usr/src/Model/
|
||||
RUN cd /usr/src/Model/
|
||||
RUN rm -rf /usr/src/Model/temp/
|
||||
RUN npm run compile
|
||||
COPY ./Model /usr/src/Model
|
||||
|
||||
|
||||
|
||||
# Install CommonServer
|
||||
@ -50,14 +38,8 @@ RUN mkdir /usr/src/CommonServer
|
||||
WORKDIR /usr/src/CommonServer
|
||||
COPY ./CommonServer/package*.json /usr/src/CommonServer/
|
||||
RUN npm install
|
||||
RUN mkdir /usr/src/CommonServer/temp
|
||||
COPY ./CommonServer /usr/src/CommonServer/temp
|
||||
# Remove node modules copies from local computer.
|
||||
RUN rm -rf /usr/src/CommonServer/temp/node_modules
|
||||
RUN cp -a /usr/src/CommonServer/temp/. /usr/src/CommonServer/
|
||||
RUN cd /usr/src/CommonServer/
|
||||
RUN rm -rf /usr/src/CommonServer/temp/
|
||||
RUN npm run compile
|
||||
COPY ./CommonServer /usr/src/CommonServer
|
||||
|
||||
|
||||
|
||||
|
||||
@ -66,14 +48,8 @@ RUN mkdir /usr/src/CommonUI
|
||||
WORKDIR /usr/src/CommonUI
|
||||
COPY ./CommonUI/package*.json /usr/src/CommonUI/
|
||||
RUN npm install --force
|
||||
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
|
||||
COPY ./CommonUI /usr/src/CommonUI
|
||||
|
||||
|
||||
#SET ENV Variables
|
||||
ENV PRODUCTION=true
|
||||
|
@ -3,7 +3,7 @@
|
||||
#
|
||||
|
||||
# Pull base image nodejs image.
|
||||
FROM node:alpine
|
||||
FROM node:18-alpine
|
||||
|
||||
# Install bash.
|
||||
RUN apk update && apk add bash && apk add curl
|
||||
@ -20,33 +20,21 @@ RUN npm install nodemon -g
|
||||
|
||||
RUN mkdir /usr/src
|
||||
|
||||
# Install Common
|
||||
# Install common
|
||||
RUN mkdir /usr/src/Common
|
||||
WORKDIR /usr/src/Common
|
||||
COPY ./Common/package*.json /usr/src/Common/
|
||||
RUN npm install
|
||||
RUN mkdir /usr/src/Common/temp
|
||||
COPY ./Common /usr/src/Common/temp
|
||||
# Remove node modules copies from local computer.
|
||||
RUN rm -rf /usr/src/Common/temp/node_modules
|
||||
RUN cp -a /usr/src/Common/temp/. /usr/src/Common/
|
||||
RUN cd /usr/src/Common/
|
||||
RUN rm -rf /usr/src/Common/temp/
|
||||
RUN npm run compile
|
||||
COPY ./Common /usr/src/Common
|
||||
|
||||
|
||||
# Install Model
|
||||
RUN mkdir /usr/src/Model
|
||||
WORKDIR /usr/src/Model
|
||||
COPY ./Model/package*.json /usr/src/Model/
|
||||
RUN npm install
|
||||
RUN mkdir /usr/src/Model/temp
|
||||
COPY ./Model /usr/src/Model/temp
|
||||
# Remove node modules copies from local computer.
|
||||
RUN rm -rf /usr/src/Model/temp/node_modules
|
||||
RUN cp -a /usr/src/Model/temp/. /usr/src/Model/
|
||||
RUN cd /usr/src/Model/
|
||||
RUN rm -rf /usr/src/Model/temp/
|
||||
RUN npm run compile
|
||||
COPY ./Model /usr/src/Model
|
||||
|
||||
|
||||
|
||||
# Install CommonServer
|
||||
@ -54,14 +42,8 @@ RUN mkdir /usr/src/CommonServer
|
||||
WORKDIR /usr/src/CommonServer
|
||||
COPY ./CommonServer/package*.json /usr/src/CommonServer/
|
||||
RUN npm install
|
||||
RUN mkdir /usr/src/CommonServer/temp
|
||||
COPY ./CommonServer /usr/src/CommonServer/temp
|
||||
# Remove node modules copies from local computer.
|
||||
RUN rm -rf /usr/src/CommonServer/temp/node_modules
|
||||
RUN cp -a /usr/src/CommonServer/temp/. /usr/src/CommonServer/
|
||||
RUN cd /usr/src/CommonServer/
|
||||
RUN rm -rf /usr/src/CommonServer/temp/
|
||||
RUN npm run compile
|
||||
COPY ./CommonServer /usr/src/CommonServer
|
||||
|
||||
|
||||
|
||||
#SET ENV Variables
|
||||
|
@ -3,7 +3,7 @@
|
||||
#
|
||||
|
||||
# Pull base image nodejs image.
|
||||
FROM node:alpine
|
||||
FROM node:18-alpine
|
||||
|
||||
# Install bash.
|
||||
RUN apk update && apk add bash && apk add curl
|
||||
@ -20,33 +20,21 @@ RUN npm install nodemon -g
|
||||
|
||||
RUN mkdir /usr/src
|
||||
|
||||
# Install Common
|
||||
# Install common
|
||||
RUN mkdir /usr/src/Common
|
||||
WORKDIR /usr/src/Common
|
||||
COPY ./Common/package*.json /usr/src/Common/
|
||||
RUN npm install
|
||||
RUN mkdir /usr/src/Common/temp
|
||||
COPY ./Common /usr/src/Common/temp
|
||||
# Remove node modules copies from local computer.
|
||||
RUN rm -rf /usr/src/Common/temp/node_modules
|
||||
RUN cp -a /usr/src/Common/temp/. /usr/src/Common/
|
||||
RUN cd /usr/src/Common/
|
||||
RUN rm -rf /usr/src/Common/temp/
|
||||
RUN npm run compile
|
||||
COPY ./Common /usr/src/Common
|
||||
|
||||
|
||||
# Install Model
|
||||
RUN mkdir /usr/src/Model
|
||||
WORKDIR /usr/src/Model
|
||||
COPY ./Model/package*.json /usr/src/Model/
|
||||
RUN npm install
|
||||
RUN mkdir /usr/src/Model/temp
|
||||
COPY ./Model /usr/src/Model/temp
|
||||
# Remove node modules copies from local computer.
|
||||
RUN rm -rf /usr/src/Model/temp/node_modules
|
||||
RUN cp -a /usr/src/Model/temp/. /usr/src/Model/
|
||||
RUN cd /usr/src/Model/
|
||||
RUN rm -rf /usr/src/Model/temp/
|
||||
RUN npm run compile
|
||||
COPY ./Model /usr/src/Model
|
||||
|
||||
|
||||
|
||||
# Install CommonServer
|
||||
@ -54,14 +42,8 @@ RUN mkdir /usr/src/CommonServer
|
||||
WORKDIR /usr/src/CommonServer
|
||||
COPY ./CommonServer/package*.json /usr/src/CommonServer/
|
||||
RUN npm install
|
||||
RUN mkdir /usr/src/CommonServer/temp
|
||||
COPY ./CommonServer /usr/src/CommonServer/temp
|
||||
# Remove node modules copies from local computer.
|
||||
RUN rm -rf /usr/src/CommonServer/temp/node_modules
|
||||
RUN cp -a /usr/src/CommonServer/temp/. /usr/src/CommonServer/
|
||||
RUN cd /usr/src/CommonServer/
|
||||
RUN rm -rf /usr/src/CommonServer/temp/
|
||||
RUN npm run compile
|
||||
COPY ./CommonServer /usr/src/CommonServer
|
||||
|
||||
|
||||
|
||||
#SET ENV Variables
|
||||
|
@ -1,4 +1,4 @@
|
||||
FROM node:alpine
|
||||
FROM node:18-alpine
|
||||
|
||||
ARG PORT=25
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
# Pull base image nodejs image.
|
||||
FROM node:alpine
|
||||
FROM node:18-alpine
|
||||
|
||||
# Install bash.
|
||||
RUN apk update && apk add bash && apk add curl
|
||||
@ -12,33 +12,21 @@ RUN npm install nodemon -g
|
||||
|
||||
RUN mkdir /usr/src
|
||||
|
||||
# Install Common
|
||||
# Install common
|
||||
RUN mkdir /usr/src/Common
|
||||
WORKDIR /usr/src/Common
|
||||
COPY ./Common/package*.json /usr/src/Common/
|
||||
RUN npm install
|
||||
RUN mkdir /usr/src/Common/temp
|
||||
COPY ./Common /usr/src/Common/temp
|
||||
# Remove node modules copies from local computer.
|
||||
RUN rm -rf /usr/src/Common/temp/node_modules
|
||||
RUN cp -a /usr/src/Common/temp/. /usr/src/Common/
|
||||
RUN cd /usr/src/Common/
|
||||
RUN rm -rf /usr/src/Common/temp/
|
||||
RUN npm run compile
|
||||
COPY ./Common /usr/src/Common
|
||||
|
||||
|
||||
# Install Model
|
||||
RUN mkdir /usr/src/Model
|
||||
WORKDIR /usr/src/Model
|
||||
COPY ./Model/package*.json /usr/src/Model/
|
||||
RUN npm install
|
||||
RUN mkdir /usr/src/Model/temp
|
||||
COPY ./Model /usr/src/Model/temp
|
||||
# Remove node modules copies from local computer.
|
||||
RUN rm -rf /usr/src/Model/temp/node_modules
|
||||
RUN cp -a /usr/src/Model/temp/. /usr/src/Model/
|
||||
RUN cd /usr/src/Model/
|
||||
RUN rm -rf /usr/src/Model/temp/
|
||||
RUN npm run compile
|
||||
COPY ./Model /usr/src/Model
|
||||
|
||||
|
||||
|
||||
# Install CommonServer
|
||||
@ -46,14 +34,8 @@ RUN mkdir /usr/src/CommonServer
|
||||
WORKDIR /usr/src/CommonServer
|
||||
COPY ./CommonServer/package*.json /usr/src/CommonServer/
|
||||
RUN npm install
|
||||
RUN mkdir /usr/src/CommonServer/temp
|
||||
COPY ./CommonServer /usr/src/CommonServer/temp
|
||||
# Remove node modules copies from local computer.
|
||||
RUN rm -rf /usr/src/CommonServer/temp/node_modules
|
||||
RUN cp -a /usr/src/CommonServer/temp/. /usr/src/CommonServer/
|
||||
RUN cd /usr/src/CommonServer/
|
||||
RUN rm -rf /usr/src/CommonServer/temp/
|
||||
RUN npm run compile
|
||||
COPY ./CommonServer /usr/src/CommonServer
|
||||
|
||||
|
||||
|
||||
RUN mkdir /usr/src/app
|
||||
|
@ -3,7 +3,7 @@
|
||||
#
|
||||
|
||||
# Pull base image nodejs image.
|
||||
FROM node:alpine
|
||||
FROM node:18-alpine
|
||||
|
||||
#SET ENV Variables.
|
||||
ENV PRODUCTION=true
|
||||
@ -20,47 +20,29 @@ RUN npm install nodemon -g
|
||||
|
||||
RUN mkdir /usr/src
|
||||
|
||||
# Install Common
|
||||
# Install common
|
||||
RUN mkdir /usr/src/Common
|
||||
WORKDIR /usr/src/Common
|
||||
COPY ./Common/package*.json /usr/src/Common/
|
||||
RUN npm install
|
||||
RUN mkdir /usr/src/Common/temp
|
||||
COPY ./Common /usr/src/Common/temp
|
||||
# Remove node modules copies from local computer.
|
||||
RUN rm -rf /usr/src/Common/temp/node_modules
|
||||
RUN cp -a /usr/src/Common/temp/. /usr/src/Common/
|
||||
RUN cd /usr/src/Common/
|
||||
RUN rm -rf /usr/src/Common/temp/
|
||||
RUN npm run compile
|
||||
COPY ./Common /usr/src/Common
|
||||
|
||||
|
||||
# Install Model
|
||||
RUN mkdir /usr/src/Model
|
||||
WORKDIR /usr/src/Model
|
||||
COPY ./Model/package*.json /usr/src/Model/
|
||||
RUN npm install
|
||||
RUN mkdir /usr/src/Model/temp
|
||||
COPY ./Model /usr/src/Model/temp
|
||||
# Remove node modules copies from local computer.
|
||||
RUN rm -rf /usr/src/Model/temp/node_modules
|
||||
RUN cp -a /usr/src/Model/temp/. /usr/src/Model/
|
||||
RUN cd /usr/src/Model/
|
||||
RUN rm -rf /usr/src/Model/temp/
|
||||
RUN npm run compile
|
||||
COPY ./Model /usr/src/Model
|
||||
|
||||
|
||||
# Install CommonServer
|
||||
RUN mkdir /usr/src/CommonServer
|
||||
WORKDIR /usr/src/CommonServer
|
||||
COPY ./CommonServer/package*.json /usr/src/CommonServer/
|
||||
RUN npm install
|
||||
RUN mkdir /usr/src/CommonServer/temp
|
||||
COPY ./CommonServer /usr/src/CommonServer/temp
|
||||
# Remove node modules copies from local computer.
|
||||
RUN rm -rf /usr/src/CommonServer/temp/node_modules
|
||||
RUN cp -a /usr/src/CommonServer/temp/. /usr/src/CommonServer/
|
||||
RUN cd /usr/src/CommonServer/
|
||||
RUN rm -rf /usr/src/CommonServer/temp/
|
||||
RUN npm run compile
|
||||
COPY ./CommonServer /usr/src/CommonServer
|
||||
|
||||
|
||||
RUN mkdir /usr/src/app
|
||||
|
||||
|
@ -3,7 +3,7 @@
|
||||
#
|
||||
|
||||
# Pull base image nodejs image.
|
||||
FROM node:alpine
|
||||
FROM node:18-alpine
|
||||
|
||||
# Install bash.
|
||||
RUN apk update && apk add bash && apk add curl
|
||||
@ -17,33 +17,21 @@ RUN npm install nodemon -g
|
||||
|
||||
RUN mkdir /usr/src
|
||||
|
||||
# Install Common
|
||||
# Install common
|
||||
RUN mkdir /usr/src/Common
|
||||
WORKDIR /usr/src/Common
|
||||
COPY ./Common/package*.json /usr/src/Common/
|
||||
RUN npm install
|
||||
RUN mkdir /usr/src/Common/temp
|
||||
COPY ./Common /usr/src/Common/temp
|
||||
# Remove node modules copies from local computer.
|
||||
RUN rm -rf /usr/src/Common/temp/node_modules
|
||||
RUN cp -a /usr/src/Common/temp/. /usr/src/Common/
|
||||
RUN cd /usr/src/Common/
|
||||
RUN rm -rf /usr/src/Common/temp/
|
||||
RUN npm run compile
|
||||
COPY ./Common /usr/src/Common
|
||||
|
||||
|
||||
# Install Model
|
||||
RUN mkdir /usr/src/Model
|
||||
WORKDIR /usr/src/Model
|
||||
COPY ./Model/package*.json /usr/src/Model/
|
||||
RUN npm install
|
||||
RUN mkdir /usr/src/Model/temp
|
||||
COPY ./Model /usr/src/Model/temp
|
||||
# Remove node modules copies from local computer.
|
||||
RUN rm -rf /usr/src/Model/temp/node_modules
|
||||
RUN cp -a /usr/src/Model/temp/. /usr/src/Model/
|
||||
RUN cd /usr/src/Model/
|
||||
RUN rm -rf /usr/src/Model/temp/
|
||||
RUN npm run compile
|
||||
COPY ./Model /usr/src/Model
|
||||
|
||||
|
||||
|
||||
# Install CommonServer
|
||||
@ -51,14 +39,8 @@ RUN mkdir /usr/src/CommonServer
|
||||
WORKDIR /usr/src/CommonServer
|
||||
COPY ./CommonServer/package*.json /usr/src/CommonServer/
|
||||
RUN npm install
|
||||
RUN mkdir /usr/src/CommonServer/temp
|
||||
COPY ./CommonServer /usr/src/CommonServer/temp
|
||||
# Remove node modules copies from local computer.
|
||||
RUN rm -rf /usr/src/CommonServer/temp/node_modules
|
||||
RUN cp -a /usr/src/CommonServer/temp/. /usr/src/CommonServer/
|
||||
RUN cd /usr/src/CommonServer/
|
||||
RUN rm -rf /usr/src/CommonServer/temp/
|
||||
RUN npm run compile
|
||||
COPY ./CommonServer /usr/src/CommonServer
|
||||
|
||||
|
||||
|
||||
#SET ENV Variables
|
||||
|
@ -3,7 +3,7 @@
|
||||
#
|
||||
|
||||
# Pull base image nodejs image.
|
||||
FROM node:alpine
|
||||
FROM node:18-alpine
|
||||
|
||||
# Install bash.
|
||||
RUN apk update && apk add bash && apk add curl
|
||||
@ -20,33 +20,21 @@ RUN npm install nodemon -g
|
||||
|
||||
RUN mkdir /usr/src
|
||||
|
||||
# Install Common
|
||||
# Install common
|
||||
RUN mkdir /usr/src/Common
|
||||
WORKDIR /usr/src/Common
|
||||
COPY ./Common/package*.json /usr/src/Common/
|
||||
RUN npm install
|
||||
RUN mkdir /usr/src/Common/temp
|
||||
COPY ./Common /usr/src/Common/temp
|
||||
# Remove node modules copies from local computer.
|
||||
RUN rm -rf /usr/src/Common/temp/node_modules
|
||||
RUN cp -a /usr/src/Common/temp/. /usr/src/Common/
|
||||
RUN cd /usr/src/Common/
|
||||
RUN rm -rf /usr/src/Common/temp/
|
||||
RUN npm run compile
|
||||
COPY ./Common /usr/src/Common
|
||||
|
||||
|
||||
# Install Model
|
||||
RUN mkdir /usr/src/Model
|
||||
WORKDIR /usr/src/Model
|
||||
COPY ./Model/package*.json /usr/src/Model/
|
||||
RUN npm install
|
||||
RUN mkdir /usr/src/Model/temp
|
||||
COPY ./Model /usr/src/Model/temp
|
||||
# Remove node modules copies from local computer.
|
||||
RUN rm -rf /usr/src/Model/temp/node_modules
|
||||
RUN cp -a /usr/src/Model/temp/. /usr/src/Model/
|
||||
RUN cd /usr/src/Model/
|
||||
RUN rm -rf /usr/src/Model/temp/
|
||||
RUN npm run compile
|
||||
COPY ./Model /usr/src/Model
|
||||
|
||||
|
||||
|
||||
# Install CommonServer
|
||||
@ -54,14 +42,8 @@ RUN mkdir /usr/src/CommonServer
|
||||
WORKDIR /usr/src/CommonServer
|
||||
COPY ./CommonServer/package*.json /usr/src/CommonServer/
|
||||
RUN npm install
|
||||
RUN mkdir /usr/src/CommonServer/temp
|
||||
COPY ./CommonServer /usr/src/CommonServer/temp
|
||||
# Remove node modules copies from local computer.
|
||||
RUN rm -rf /usr/src/CommonServer/temp/node_modules
|
||||
RUN cp -a /usr/src/CommonServer/temp/. /usr/src/CommonServer/
|
||||
RUN cd /usr/src/CommonServer/
|
||||
RUN rm -rf /usr/src/CommonServer/temp/
|
||||
RUN npm run compile
|
||||
COPY ./CommonServer /usr/src/CommonServer
|
||||
|
||||
|
||||
|
||||
#SET ENV Variables
|
||||
|
@ -3,7 +3,7 @@
|
||||
#
|
||||
|
||||
# Pull base image nodejs image.
|
||||
FROM node:alpine
|
||||
FROM node:18-alpine
|
||||
|
||||
# Install bash.
|
||||
RUN apk update && apk add bash && apk add curl
|
||||
@ -20,33 +20,21 @@ RUN npm install nodemon -g
|
||||
|
||||
RUN mkdir /usr/src
|
||||
|
||||
# Install Common
|
||||
# Install common
|
||||
RUN mkdir /usr/src/Common
|
||||
WORKDIR /usr/src/Common
|
||||
COPY ./Common/package*.json /usr/src/Common/
|
||||
RUN npm install
|
||||
RUN mkdir /usr/src/Common/temp
|
||||
COPY ./Common /usr/src/Common/temp
|
||||
# Remove node modules copies from local computer.
|
||||
RUN rm -rf /usr/src/Common/temp/node_modules
|
||||
RUN cp -a /usr/src/Common/temp/. /usr/src/Common/
|
||||
RUN cd /usr/src/Common/
|
||||
RUN rm -rf /usr/src/Common/temp/
|
||||
RUN npm run compile
|
||||
COPY ./Common /usr/src/Common
|
||||
|
||||
|
||||
# Install Model
|
||||
RUN mkdir /usr/src/Model
|
||||
WORKDIR /usr/src/Model
|
||||
COPY ./Model/package*.json /usr/src/Model/
|
||||
RUN npm install
|
||||
RUN mkdir /usr/src/Model/temp
|
||||
COPY ./Model /usr/src/Model/temp
|
||||
# Remove node modules copies from local computer.
|
||||
RUN rm -rf /usr/src/Model/temp/node_modules
|
||||
RUN cp -a /usr/src/Model/temp/. /usr/src/Model/
|
||||
RUN cd /usr/src/Model/
|
||||
RUN rm -rf /usr/src/Model/temp/
|
||||
RUN npm run compile
|
||||
COPY ./Model /usr/src/Model
|
||||
|
||||
|
||||
|
||||
# Install CommonServer
|
||||
@ -54,14 +42,8 @@ RUN mkdir /usr/src/CommonServer
|
||||
WORKDIR /usr/src/CommonServer
|
||||
COPY ./CommonServer/package*.json /usr/src/CommonServer/
|
||||
RUN npm install
|
||||
RUN mkdir /usr/src/CommonServer/temp
|
||||
COPY ./CommonServer /usr/src/CommonServer/temp
|
||||
# Remove node modules copies from local computer.
|
||||
RUN rm -rf /usr/src/CommonServer/temp/node_modules
|
||||
RUN cp -a /usr/src/CommonServer/temp/. /usr/src/CommonServer/
|
||||
RUN cd /usr/src/CommonServer/
|
||||
RUN rm -rf /usr/src/CommonServer/temp/
|
||||
RUN npm run compile
|
||||
COPY ./CommonServer /usr/src/CommonServer
|
||||
|
||||
|
||||
|
||||
#SET ENV Variables
|
||||
|
@ -3,7 +3,7 @@
|
||||
#
|
||||
|
||||
# Pull base image nodejs image.
|
||||
FROM node:alpine
|
||||
FROM node:18-alpine
|
||||
|
||||
# Install bash.
|
||||
RUN apk update && apk add bash && apk add curl
|
||||
@ -16,33 +16,21 @@ RUN npm install nodemon -g
|
||||
|
||||
RUN mkdir /usr/src
|
||||
|
||||
# Install Common
|
||||
# Install common
|
||||
RUN mkdir /usr/src/Common
|
||||
WORKDIR /usr/src/Common
|
||||
COPY ./Common/package*.json /usr/src/Common/
|
||||
RUN npm install
|
||||
RUN mkdir /usr/src/Common/temp
|
||||
COPY ./Common /usr/src/Common/temp
|
||||
# Remove node modules copies from local computer.
|
||||
RUN rm -rf /usr/src/Common/temp/node_modules
|
||||
RUN cp -a /usr/src/Common/temp/. /usr/src/Common/
|
||||
RUN cd /usr/src/Common/
|
||||
RUN rm -rf /usr/src/Common/temp/
|
||||
RUN npm run compile
|
||||
COPY ./Common /usr/src/Common
|
||||
|
||||
|
||||
# Install Model
|
||||
RUN mkdir /usr/src/Model
|
||||
WORKDIR /usr/src/Model
|
||||
COPY ./Model/package*.json /usr/src/Model/
|
||||
RUN npm install
|
||||
RUN mkdir /usr/src/Model/temp
|
||||
COPY ./Model /usr/src/Model/temp
|
||||
# Remove node modules copies from local computer.
|
||||
RUN rm -rf /usr/src/Model/temp/node_modules
|
||||
RUN cp -a /usr/src/Model/temp/. /usr/src/Model/
|
||||
RUN cd /usr/src/Model/
|
||||
RUN rm -rf /usr/src/Model/temp/
|
||||
RUN npm run compile
|
||||
COPY ./Model /usr/src/Model
|
||||
|
||||
|
||||
|
||||
# Install CommonServer
|
||||
@ -50,14 +38,8 @@ RUN mkdir /usr/src/CommonServer
|
||||
WORKDIR /usr/src/CommonServer
|
||||
COPY ./CommonServer/package*.json /usr/src/CommonServer/
|
||||
RUN npm install
|
||||
RUN mkdir /usr/src/CommonServer/temp
|
||||
COPY ./CommonServer /usr/src/CommonServer/temp
|
||||
# Remove node modules copies from local computer.
|
||||
RUN rm -rf /usr/src/CommonServer/temp/node_modules
|
||||
RUN cp -a /usr/src/CommonServer/temp/. /usr/src/CommonServer/
|
||||
RUN cd /usr/src/CommonServer/
|
||||
RUN rm -rf /usr/src/CommonServer/temp/
|
||||
RUN npm run compile
|
||||
COPY ./CommonServer /usr/src/CommonServer
|
||||
|
||||
|
||||
|
||||
#SET ENV Variables
|
||||
|
@ -3,7 +3,7 @@
|
||||
#
|
||||
|
||||
# Pull base image nodejs image.
|
||||
FROM node:alpine
|
||||
FROM node:18-alpine
|
||||
|
||||
# Install bash.
|
||||
RUN apk update && apk add bash && apk add curl
|
||||
@ -16,33 +16,21 @@ RUN npm install nodemon -g
|
||||
|
||||
RUN mkdir /usr/src
|
||||
|
||||
# Install Common
|
||||
# Install common
|
||||
RUN mkdir /usr/src/Common
|
||||
WORKDIR /usr/src/Common
|
||||
COPY ./Common/package*.json /usr/src/Common/
|
||||
RUN npm install
|
||||
RUN mkdir /usr/src/Common/temp
|
||||
COPY ./Common /usr/src/Common/temp
|
||||
# Remove node modules copies from local computer.
|
||||
RUN rm -rf /usr/src/Common/temp/node_modules
|
||||
RUN cp -a /usr/src/Common/temp/. /usr/src/Common/
|
||||
RUN cd /usr/src/Common/
|
||||
RUN rm -rf /usr/src/Common/temp/
|
||||
RUN npm run compile
|
||||
COPY ./Common /usr/src/Common
|
||||
|
||||
|
||||
# Install Model
|
||||
RUN mkdir /usr/src/Model
|
||||
WORKDIR /usr/src/Model
|
||||
COPY ./Model/package*.json /usr/src/Model/
|
||||
RUN npm install
|
||||
RUN mkdir /usr/src/Model/temp
|
||||
COPY ./Model /usr/src/Model/temp
|
||||
# Remove node modules copies from local computer.
|
||||
RUN rm -rf /usr/src/Model/temp/node_modules
|
||||
RUN cp -a /usr/src/Model/temp/. /usr/src/Model/
|
||||
RUN cd /usr/src/Model/
|
||||
RUN rm -rf /usr/src/Model/temp/
|
||||
RUN npm run compile
|
||||
COPY ./Model /usr/src/Model
|
||||
|
||||
|
||||
|
||||
# Install CommonServer
|
||||
@ -50,14 +38,8 @@ RUN mkdir /usr/src/CommonServer
|
||||
WORKDIR /usr/src/CommonServer
|
||||
COPY ./CommonServer/package*.json /usr/src/CommonServer/
|
||||
RUN npm install
|
||||
RUN mkdir /usr/src/CommonServer/temp
|
||||
COPY ./CommonServer /usr/src/CommonServer/temp
|
||||
# Remove node modules copies from local computer.
|
||||
RUN rm -rf /usr/src/CommonServer/temp/node_modules
|
||||
RUN cp -a /usr/src/CommonServer/temp/. /usr/src/CommonServer/
|
||||
RUN cd /usr/src/CommonServer/
|
||||
RUN rm -rf /usr/src/CommonServer/temp/
|
||||
RUN npm run compile
|
||||
COPY ./CommonServer /usr/src/CommonServer
|
||||
|
||||
|
||||
|
||||
#SET ENV Variables
|
||||
|
@ -3,7 +3,7 @@
|
||||
#
|
||||
|
||||
# Pull base image nodejs image.
|
||||
FROM node:alpine
|
||||
FROM node:18-alpine
|
||||
|
||||
# Install bash.
|
||||
RUN apk update && apk add bash && apk add curl
|
||||
@ -19,33 +19,21 @@ ENV PRODUCTION=true
|
||||
|
||||
RUN mkdir /usr/src
|
||||
|
||||
# Install Common
|
||||
# Install common
|
||||
RUN mkdir /usr/src/Common
|
||||
WORKDIR /usr/src/Common
|
||||
COPY ./Common/package*.json /usr/src/Common/
|
||||
RUN npm install
|
||||
RUN mkdir /usr/src/Common/temp
|
||||
COPY ./Common /usr/src/Common/temp
|
||||
# Remove node modules copies from local computer.
|
||||
RUN rm -rf /usr/src/Common/temp/node_modules
|
||||
RUN cp -a /usr/src/Common/temp/. /usr/src/Common/
|
||||
RUN cd /usr/src/Common/
|
||||
RUN rm -rf /usr/src/Common/temp/
|
||||
RUN npm run compile
|
||||
COPY ./Common /usr/src/Common
|
||||
|
||||
|
||||
# Install Model
|
||||
RUN mkdir /usr/src/Model
|
||||
WORKDIR /usr/src/Model
|
||||
COPY ./Model/package*.json /usr/src/Model/
|
||||
RUN npm install
|
||||
RUN mkdir /usr/src/Model/temp
|
||||
COPY ./Model /usr/src/Model/temp
|
||||
# Remove node modules copies from local computer.
|
||||
RUN rm -rf /usr/src/Model/temp/node_modules
|
||||
RUN cp -a /usr/src/Model/temp/. /usr/src/Model/
|
||||
RUN cd /usr/src/Model/
|
||||
RUN rm -rf /usr/src/Model/temp/
|
||||
RUN npm run compile
|
||||
COPY ./Model /usr/src/Model
|
||||
|
||||
|
||||
|
||||
# Install CommonServer
|
||||
@ -53,14 +41,8 @@ RUN mkdir /usr/src/CommonServer
|
||||
WORKDIR /usr/src/CommonServer
|
||||
COPY ./CommonServer/package*.json /usr/src/CommonServer/
|
||||
RUN npm install
|
||||
RUN mkdir /usr/src/CommonServer/temp
|
||||
COPY ./CommonServer /usr/src/CommonServer/temp
|
||||
# Remove node modules copies from local computer.
|
||||
RUN rm -rf /usr/src/CommonServer/temp/node_modules
|
||||
RUN cp -a /usr/src/CommonServer/temp/. /usr/src/CommonServer/
|
||||
RUN cd /usr/src/CommonServer/
|
||||
RUN rm -rf /usr/src/CommonServer/temp/
|
||||
RUN npm run compile
|
||||
COPY ./CommonServer /usr/src/CommonServer
|
||||
|
||||
|
||||
|
||||
|
||||
|
@ -3,7 +3,7 @@
|
||||
#
|
||||
|
||||
# Pull base image nodejs image.
|
||||
FROM node:alpine
|
||||
FROM node:18-alpine
|
||||
|
||||
# Install bash.
|
||||
RUN apk update && apk add bash && apk add curl
|
||||
@ -16,33 +16,21 @@ RUN npm install nodemon -g
|
||||
|
||||
RUN mkdir /usr/src
|
||||
|
||||
# Install Common
|
||||
# Install common
|
||||
RUN mkdir /usr/src/Common
|
||||
WORKDIR /usr/src/Common
|
||||
COPY ./Common/package*.json /usr/src/Common/
|
||||
RUN npm install
|
||||
RUN mkdir /usr/src/Common/temp
|
||||
COPY ./Common /usr/src/Common/temp
|
||||
# Remove node modules copies from local computer.
|
||||
RUN rm -rf /usr/src/Common/temp/node_modules
|
||||
RUN cp -a /usr/src/Common/temp/. /usr/src/Common/
|
||||
RUN cd /usr/src/Common/
|
||||
RUN rm -rf /usr/src/Common/temp/
|
||||
RUN npm run compile
|
||||
COPY ./Common /usr/src/Common
|
||||
|
||||
|
||||
# Install Model
|
||||
RUN mkdir /usr/src/Model
|
||||
WORKDIR /usr/src/Model
|
||||
COPY ./Model/package*.json /usr/src/Model/
|
||||
RUN npm install
|
||||
RUN mkdir /usr/src/Model/temp
|
||||
COPY ./Model /usr/src/Model/temp
|
||||
# Remove node modules copies from local computer.
|
||||
RUN rm -rf /usr/src/Model/temp/node_modules
|
||||
RUN cp -a /usr/src/Model/temp/. /usr/src/Model/
|
||||
RUN cd /usr/src/Model/
|
||||
RUN rm -rf /usr/src/Model/temp/
|
||||
RUN npm run compile
|
||||
COPY ./Model /usr/src/Model
|
||||
|
||||
|
||||
|
||||
# Install CommonServer
|
||||
@ -50,14 +38,8 @@ RUN mkdir /usr/src/CommonServer
|
||||
WORKDIR /usr/src/CommonServer
|
||||
COPY ./CommonServer/package*.json /usr/src/CommonServer/
|
||||
RUN npm install
|
||||
RUN mkdir /usr/src/CommonServer/temp
|
||||
COPY ./CommonServer /usr/src/CommonServer/temp
|
||||
# Remove node modules copies from local computer.
|
||||
RUN rm -rf /usr/src/CommonServer/temp/node_modules
|
||||
RUN cp -a /usr/src/CommonServer/temp/. /usr/src/CommonServer/
|
||||
RUN cd /usr/src/CommonServer/
|
||||
RUN rm -rf /usr/src/CommonServer/temp/
|
||||
RUN npm run compile
|
||||
COPY ./CommonServer /usr/src/CommonServer
|
||||
|
||||
|
||||
|
||||
#SET ENV Variables
|
||||
|
@ -3,7 +3,7 @@
|
||||
#
|
||||
|
||||
# Pull base image nodejs image.
|
||||
FROM node:alpine
|
||||
FROM node:18-alpine
|
||||
|
||||
#SET ENV Variables
|
||||
ENV PRODUCTION=true
|
||||
@ -19,33 +19,21 @@ RUN npm install nodemon -g
|
||||
|
||||
RUN mkdir /usr/src
|
||||
|
||||
# Install Common
|
||||
# Install common
|
||||
RUN mkdir /usr/src/Common
|
||||
WORKDIR /usr/src/Common
|
||||
COPY ./Common/package*.json /usr/src/Common/
|
||||
RUN npm install
|
||||
RUN mkdir /usr/src/Common/temp
|
||||
COPY ./Common /usr/src/Common/temp
|
||||
# Remove node modules copies from local computer.
|
||||
RUN rm -rf /usr/src/Common/temp/node_modules
|
||||
RUN cp -a /usr/src/Common/temp/. /usr/src/Common/
|
||||
RUN cd /usr/src/Common/
|
||||
RUN rm -rf /usr/src/Common/temp/
|
||||
RUN npm run compile
|
||||
COPY ./Common /usr/src/Common
|
||||
|
||||
|
||||
# Install Model
|
||||
RUN mkdir /usr/src/Model
|
||||
WORKDIR /usr/src/Model
|
||||
COPY ./Model/package*.json /usr/src/Model/
|
||||
RUN npm install
|
||||
RUN mkdir /usr/src/Model/temp
|
||||
COPY ./Model /usr/src/Model/temp
|
||||
# Remove node modules copies from local computer.
|
||||
RUN rm -rf /usr/src/Model/temp/node_modules
|
||||
RUN cp -a /usr/src/Model/temp/. /usr/src/Model/
|
||||
RUN cd /usr/src/Model/
|
||||
RUN rm -rf /usr/src/Model/temp/
|
||||
RUN npm run compile
|
||||
COPY ./Model /usr/src/Model
|
||||
|
||||
|
||||
|
||||
# Install CommonServer
|
||||
@ -53,14 +41,8 @@ RUN mkdir /usr/src/CommonServer
|
||||
WORKDIR /usr/src/CommonServer
|
||||
COPY ./CommonServer/package*.json /usr/src/CommonServer/
|
||||
RUN npm install
|
||||
RUN mkdir /usr/src/CommonServer/temp
|
||||
COPY ./CommonServer /usr/src/CommonServer/temp
|
||||
# Remove node modules copies from local computer.
|
||||
RUN rm -rf /usr/src/CommonServer/temp/node_modules
|
||||
RUN cp -a /usr/src/CommonServer/temp/. /usr/src/CommonServer/
|
||||
RUN cd /usr/src/CommonServer/
|
||||
RUN rm -rf /usr/src/CommonServer/temp/
|
||||
RUN npm run compile
|
||||
COPY ./CommonServer /usr/src/CommonServer
|
||||
|
||||
|
||||
|
||||
RUN mkdir /usr/src/app
|
||||
|
@ -3,7 +3,7 @@
|
||||
#
|
||||
|
||||
# Pull base image nodejs image.
|
||||
FROM node:alpine
|
||||
FROM node:18-alpine
|
||||
|
||||
# Install bash.
|
||||
RUN apk update && apk add bash && apk add curl
|
||||
@ -17,33 +17,21 @@ RUN npm install http-server -g
|
||||
|
||||
RUN mkdir /usr/src
|
||||
|
||||
# Install Common
|
||||
# Install common
|
||||
RUN mkdir /usr/src/Common
|
||||
WORKDIR /usr/src/Common
|
||||
COPY ./Common/package*.json /usr/src/Common/
|
||||
RUN npm install
|
||||
RUN mkdir /usr/src/Common/temp
|
||||
COPY ./Common /usr/src/Common/temp
|
||||
# Remove node modules copies from local computer.
|
||||
RUN rm -rf /usr/src/Common/temp/node_modules
|
||||
RUN cp -a /usr/src/Common/temp/. /usr/src/Common/
|
||||
RUN cd /usr/src/Common/
|
||||
RUN rm -rf /usr/src/Common/temp/
|
||||
RUN npm run compile
|
||||
COPY ./Common /usr/src/Common
|
||||
|
||||
|
||||
# Install Model
|
||||
RUN mkdir /usr/src/Model
|
||||
WORKDIR /usr/src/Model
|
||||
COPY ./Model/package*.json /usr/src/Model/
|
||||
RUN npm install
|
||||
RUN mkdir /usr/src/Model/temp
|
||||
COPY ./Model /usr/src/Model/temp
|
||||
# Remove node modules copies from local computer.
|
||||
RUN rm -rf /usr/src/Model/temp/node_modules
|
||||
RUN cp -a /usr/src/Model/temp/. /usr/src/Model/
|
||||
RUN cd /usr/src/Model/
|
||||
RUN rm -rf /usr/src/Model/temp/
|
||||
RUN npm run compile
|
||||
COPY ./Model /usr/src/Model
|
||||
|
||||
|
||||
|
||||
# Install CommonServer
|
||||
@ -51,28 +39,18 @@ RUN mkdir /usr/src/CommonServer
|
||||
WORKDIR /usr/src/CommonServer
|
||||
COPY ./CommonServer/package*.json /usr/src/CommonServer/
|
||||
RUN npm install
|
||||
RUN mkdir /usr/src/CommonServer/temp
|
||||
COPY ./CommonServer /usr/src/CommonServer/temp
|
||||
# Remove node modules copies from local computer.
|
||||
RUN rm -rf /usr/src/CommonServer/temp/node_modules
|
||||
RUN cp -a /usr/src/CommonServer/temp/. /usr/src/CommonServer/
|
||||
RUN cd /usr/src/CommonServer/
|
||||
RUN rm -rf /usr/src/CommonServer/temp/
|
||||
RUN npm run compile
|
||||
COPY ./CommonServer /usr/src/CommonServer
|
||||
|
||||
|
||||
# Install CommonUI
|
||||
RUN mkdir /usr/src/CommonUI
|
||||
WORKDIR /usr/src/CommonUI
|
||||
COPY ./CommonUI/package*.json /usr/src/CommonUI/
|
||||
RUN npm install --force
|
||||
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
|
||||
COPY ./CommonUI /usr/src/CommonUI
|
||||
|
||||
|
||||
|
||||
#SET ENV Variables
|
||||
ENV PRODUCTION=true
|
||||
ENV PUPPETEER_SKIP_CHROMIUM_DOWNLOAD=true
|
||||
|
@ -3,7 +3,7 @@
|
||||
#
|
||||
|
||||
# Pull base image nodejs image.
|
||||
FROM node:alpine
|
||||
FROM node:18-alpine
|
||||
|
||||
# Install bash.
|
||||
RUN apk update && apk add bash && apk add curl
|
||||
@ -20,33 +20,21 @@ RUN npm install nodemon -g
|
||||
|
||||
RUN mkdir /usr/src
|
||||
|
||||
# Install Common
|
||||
# Install common
|
||||
RUN mkdir /usr/src/Common
|
||||
WORKDIR /usr/src/Common
|
||||
COPY ./Common/package*.json /usr/src/Common/
|
||||
RUN npm install
|
||||
RUN mkdir /usr/src/Common/temp
|
||||
COPY ./Common /usr/src/Common/temp
|
||||
# Remove node modules copies from local computer.
|
||||
RUN rm -rf /usr/src/Common/temp/node_modules
|
||||
RUN cp -a /usr/src/Common/temp/. /usr/src/Common/
|
||||
RUN cd /usr/src/Common/
|
||||
RUN rm -rf /usr/src/Common/temp/
|
||||
RUN npm run compile
|
||||
COPY ./Common /usr/src/Common
|
||||
|
||||
|
||||
# Install Model
|
||||
RUN mkdir /usr/src/Model
|
||||
WORKDIR /usr/src/Model
|
||||
COPY ./Model/package*.json /usr/src/Model/
|
||||
RUN npm install
|
||||
RUN mkdir /usr/src/Model/temp
|
||||
COPY ./Model /usr/src/Model/temp
|
||||
# Remove node modules copies from local computer.
|
||||
RUN rm -rf /usr/src/Model/temp/node_modules
|
||||
RUN cp -a /usr/src/Model/temp/. /usr/src/Model/
|
||||
RUN cd /usr/src/Model/
|
||||
RUN rm -rf /usr/src/Model/temp/
|
||||
RUN npm run compile
|
||||
COPY ./Model /usr/src/Model
|
||||
|
||||
|
||||
|
||||
# Install CommonServer
|
||||
@ -54,14 +42,8 @@ RUN mkdir /usr/src/CommonServer
|
||||
WORKDIR /usr/src/CommonServer
|
||||
COPY ./CommonServer/package*.json /usr/src/CommonServer/
|
||||
RUN npm install
|
||||
RUN mkdir /usr/src/CommonServer/temp
|
||||
COPY ./CommonServer /usr/src/CommonServer/temp
|
||||
# Remove node modules copies from local computer.
|
||||
RUN rm -rf /usr/src/CommonServer/temp/node_modules
|
||||
RUN cp -a /usr/src/CommonServer/temp/. /usr/src/CommonServer/
|
||||
RUN cd /usr/src/CommonServer/
|
||||
RUN rm -rf /usr/src/CommonServer/temp/
|
||||
RUN npm run compile
|
||||
COPY ./CommonServer /usr/src/CommonServer
|
||||
|
||||
|
||||
|
||||
#SET ENV Variables
|
||||
|
Loading…
Reference in New Issue
Block a user