mirror of
https://github.com/OneUptime/oneuptime
synced 2024-11-21 22:59:07 +00:00
fix docker files
This commit is contained in:
parent
57671c444c
commit
6057fafd97
@ -3,7 +3,7 @@
|
||||
#
|
||||
|
||||
# Pull base image nodejs image.
|
||||
FROM node:current-alpine as Base
|
||||
FROM node:current-alpine AS base
|
||||
USER root
|
||||
RUN mkdir /tmp/npm && chmod 2777 /tmp/npm && chown 1000:1000 /tmp/npm && npm config set cache /tmp/npm --global
|
||||
|
||||
@ -25,7 +25,7 @@ RUN mkdir /usr/src
|
||||
|
||||
# Install common
|
||||
|
||||
FROM Base AS Common
|
||||
FROM base AS common
|
||||
WORKDIR /usr/src/Common
|
||||
COPY ./Common/package*.json /usr/src/Common/
|
||||
RUN npm install
|
||||
@ -35,7 +35,7 @@ COPY ./Common /usr/src/Common
|
||||
|
||||
# Install Model
|
||||
|
||||
FROM Base AS Model
|
||||
FROM base AS model
|
||||
WORKDIR /usr/src/Model
|
||||
COPY ./Model/package*.json /usr/src/Model/
|
||||
RUN npm install
|
||||
@ -45,7 +45,7 @@ COPY ./Model /usr/src/Model
|
||||
|
||||
# Install CommonServer
|
||||
|
||||
FROM Base AS CommonServer
|
||||
FROM Base AS commonserver
|
||||
WORKDIR /usr/src/CommonServer
|
||||
COPY ./CommonServer/package*.json /usr/src/CommonServer/
|
||||
RUN npm install
|
||||
@ -56,7 +56,7 @@ COPY ./CommonServer /usr/src/CommonServer
|
||||
|
||||
# Install CommonUI
|
||||
|
||||
FROM Base AS CommonUI
|
||||
FROM Base AS commonui
|
||||
WORKDIR /usr/src/CommonUI
|
||||
COPY ./CommonUI/package*.json /usr/src/CommonUI/
|
||||
RUN npm install --force
|
||||
@ -66,19 +66,19 @@ COPY ./CommonUI /usr/src/CommonUI
|
||||
|
||||
#SET ENV Variables
|
||||
# Install app
|
||||
FROM Base AS App
|
||||
FROM base AS app
|
||||
|
||||
WORKDIR /usr/src/Common
|
||||
COPY --from=Common /usr/src/Common .
|
||||
COPY --from=common /usr/src/Common .
|
||||
|
||||
WORKDIR /usr/src/Model
|
||||
COPY --from=Model /usr/src/Model .
|
||||
COPY --from=model /usr/src/Model .
|
||||
|
||||
WORKDIR /usr/src/CommonServer
|
||||
COPY --from=CommonServer /usr/src/CommonServer .
|
||||
COPY --from=commonserver /usr/src/CommonServer .
|
||||
|
||||
WORKDIR /usr/src/CommonUI
|
||||
COPY --from=CommonUI /usr/src/CommonUI .
|
||||
COPY --from=commonui /usr/src/CommonUI .
|
||||
|
||||
|
||||
ENV PRODUCTION=true
|
||||
|
@ -3,7 +3,7 @@
|
||||
#
|
||||
|
||||
# Pull base image nodejs image.
|
||||
FROM node:current-alpine as Base
|
||||
FROM node:current-alpine AS base
|
||||
USER root
|
||||
RUN mkdir /tmp/npm && chmod 2777 /tmp/npm && chown 1000:1000 /tmp/npm && npm config set cache /tmp/npm --global
|
||||
|
||||
@ -25,7 +25,7 @@ RUN mkdir /usr/src
|
||||
|
||||
# Install common
|
||||
|
||||
FROM Base AS Common
|
||||
FROM base AS common
|
||||
WORKDIR /usr/src/Common
|
||||
COPY ./Common/package*.json /usr/src/Common/
|
||||
RUN npm install
|
||||
@ -34,7 +34,7 @@ COPY ./Common /usr/src/Common
|
||||
|
||||
# Install Model
|
||||
|
||||
FROM Base AS Model
|
||||
FROM base AS model
|
||||
WORKDIR /usr/src/Model
|
||||
COPY ./Model/package*.json /usr/src/Model/
|
||||
RUN npm install
|
||||
@ -44,7 +44,7 @@ COPY ./Model /usr/src/Model
|
||||
|
||||
# Install CommonServer
|
||||
|
||||
FROM Base AS CommonServer
|
||||
FROM Base AS commonserver
|
||||
WORKDIR /usr/src/CommonServer
|
||||
COPY ./CommonServer/package*.json /usr/src/CommonServer/
|
||||
RUN npm install
|
||||
@ -55,7 +55,7 @@ COPY ./CommonServer /usr/src/CommonServer
|
||||
|
||||
# Install CommonUI
|
||||
|
||||
FROM Base AS CommonUI
|
||||
FROM Base AS commonui
|
||||
WORKDIR /usr/src/CommonUI
|
||||
COPY ./CommonUI/package*.json /usr/src/CommonUI/
|
||||
RUN npm install --force
|
||||
@ -64,19 +64,19 @@ COPY ./CommonUI /usr/src/CommonUI
|
||||
|
||||
#SET ENV Variables
|
||||
# Install app
|
||||
FROM Base AS App
|
||||
FROM base AS app
|
||||
|
||||
WORKDIR /usr/src/Common
|
||||
COPY --from=Common /usr/src/Common .
|
||||
COPY --from=common /usr/src/Common .
|
||||
|
||||
WORKDIR /usr/src/Model
|
||||
COPY --from=Model /usr/src/Model .
|
||||
COPY --from=model /usr/src/Model .
|
||||
|
||||
WORKDIR /usr/src/CommonServer
|
||||
COPY --from=CommonServer /usr/src/CommonServer .
|
||||
COPY --from=commonserver /usr/src/CommonServer .
|
||||
|
||||
WORKDIR /usr/src/CommonUI
|
||||
COPY --from=CommonUI /usr/src/CommonUI .
|
||||
COPY --from=commonui /usr/src/CommonUI .
|
||||
|
||||
|
||||
ENV PRODUCTION=true
|
||||
|
@ -1,5 +1,5 @@
|
||||
# Pull base image nodejs image.
|
||||
FROM node:current-alpine as Base
|
||||
FROM node:current-alpine AS base
|
||||
USER root
|
||||
RUN mkdir /tmp/npm && chmod 2777 /tmp/npm && chown 1000:1000 /tmp/npm && npm config set cache /tmp/npm --global
|
||||
|
||||
@ -21,7 +21,7 @@ RUN mkdir /usr/src
|
||||
|
||||
# Install common
|
||||
|
||||
FROM Base AS Common
|
||||
FROM base AS common
|
||||
WORKDIR /usr/src/Common
|
||||
COPY ./Common/package*.json /usr/src/Common/
|
||||
RUN npm install
|
||||
@ -30,7 +30,7 @@ COPY ./Common /usr/src/Common
|
||||
|
||||
# Install Model
|
||||
|
||||
FROM Base AS Model
|
||||
FROM base AS model
|
||||
WORKDIR /usr/src/Model
|
||||
COPY ./Model/package*.json /usr/src/Model/
|
||||
RUN npm install
|
||||
@ -40,7 +40,7 @@ COPY ./Model /usr/src/Model
|
||||
|
||||
# Install CommonServer
|
||||
|
||||
FROM Base AS CommonServer
|
||||
FROM Base AS commonserver
|
||||
WORKDIR /usr/src/CommonServer
|
||||
COPY ./CommonServer/package*.json /usr/src/CommonServer/
|
||||
RUN npm install
|
||||
|
@ -3,7 +3,7 @@
|
||||
#
|
||||
|
||||
# Pull base image nodejs image.
|
||||
FROM node:current-alpine as Base
|
||||
FROM node:current-alpine AS base
|
||||
USER root
|
||||
RUN mkdir /tmp/npm && chmod 2777 /tmp/npm && chown 1000:1000 /tmp/npm && npm config set cache /tmp/npm --global
|
||||
|
||||
@ -25,7 +25,7 @@ RUN mkdir /usr/src
|
||||
|
||||
# Install common
|
||||
|
||||
FROM Base AS Common
|
||||
FROM base AS common
|
||||
WORKDIR /usr/src/Common
|
||||
COPY ./Common/package*.json /usr/src/Common/
|
||||
RUN npm install
|
||||
@ -34,7 +34,7 @@ COPY ./Common /usr/src/Common
|
||||
|
||||
# Install Model
|
||||
|
||||
FROM Base AS Model
|
||||
FROM base AS model
|
||||
WORKDIR /usr/src/Model
|
||||
COPY ./Model/package*.json /usr/src/Model/
|
||||
RUN npm install
|
||||
@ -44,7 +44,7 @@ COPY ./Model /usr/src/Model
|
||||
|
||||
# Install CommonServer
|
||||
|
||||
FROM Base AS CommonServer
|
||||
FROM Base AS commonserver
|
||||
WORKDIR /usr/src/CommonServer
|
||||
COPY ./CommonServer/package*.json /usr/src/CommonServer/
|
||||
RUN npm install
|
||||
@ -55,7 +55,7 @@ COPY ./CommonServer /usr/src/CommonServer
|
||||
|
||||
# Install CommonUI
|
||||
|
||||
FROM Base AS CommonUI
|
||||
FROM Base AS commonui
|
||||
WORKDIR /usr/src/CommonUI
|
||||
COPY ./CommonUI/package*.json /usr/src/CommonUI/
|
||||
RUN npm install --force
|
||||
@ -64,19 +64,19 @@ COPY ./CommonUI /usr/src/CommonUI
|
||||
|
||||
#SET ENV Variables
|
||||
# Install app
|
||||
FROM Base AS App
|
||||
FROM base AS app
|
||||
|
||||
WORKDIR /usr/src/Common
|
||||
COPY --from=Common /usr/src/Common .
|
||||
COPY --from=common /usr/src/Common .
|
||||
|
||||
WORKDIR /usr/src/Model
|
||||
COPY --from=Model /usr/src/Model .
|
||||
COPY --from=model /usr/src/Model .
|
||||
|
||||
WORKDIR /usr/src/CommonServer
|
||||
COPY --from=CommonServer /usr/src/CommonServer .
|
||||
COPY --from=commonserver /usr/src/CommonServer .
|
||||
|
||||
WORKDIR /usr/src/CommonUI
|
||||
COPY --from=CommonUI /usr/src/CommonUI .
|
||||
COPY --from=commonui /usr/src/CommonUI .
|
||||
|
||||
ENV PRODUCTION=true
|
||||
ENV PUPPETEER_SKIP_CHROMIUM_DOWNLOAD=true
|
||||
|
@ -3,7 +3,7 @@
|
||||
#
|
||||
|
||||
# Pull base image nodejs image.
|
||||
FROM node:current-alpine as Base
|
||||
FROM node:current-alpine AS base
|
||||
USER root
|
||||
RUN mkdir /tmp/npm && chmod 2777 /tmp/npm && chown 1000:1000 /tmp/npm && npm config set cache /tmp/npm --global
|
||||
|
||||
@ -29,7 +29,7 @@ RUN mkdir /usr/src
|
||||
|
||||
# Install common
|
||||
|
||||
FROM Base AS Common
|
||||
FROM base AS common
|
||||
WORKDIR /usr/src/Common
|
||||
COPY ./Common/package*.json /usr/src/Common/
|
||||
RUN npm install
|
||||
@ -38,7 +38,7 @@ COPY ./Common /usr/src/Common
|
||||
|
||||
# Install Model
|
||||
|
||||
FROM Base AS Model
|
||||
FROM base AS model
|
||||
WORKDIR /usr/src/Model
|
||||
COPY ./Model/package*.json /usr/src/Model/
|
||||
RUN npm install
|
||||
@ -48,7 +48,7 @@ COPY ./Model /usr/src/Model
|
||||
|
||||
# Install CommonServer
|
||||
|
||||
FROM Base AS CommonServer
|
||||
FROM Base AS commonserver
|
||||
WORKDIR /usr/src/CommonServer
|
||||
COPY ./CommonServer/package*.json /usr/src/CommonServer/
|
||||
RUN npm install
|
||||
@ -58,16 +58,16 @@ COPY ./CommonServer /usr/src/CommonServer
|
||||
|
||||
#SET ENV Variables
|
||||
# Install app
|
||||
FROM Base AS App
|
||||
FROM base AS app
|
||||
|
||||
WORKDIR /usr/src/Common
|
||||
COPY --from=Common /usr/src/Common .
|
||||
COPY --from=common /usr/src/Common .
|
||||
|
||||
WORKDIR /usr/src/Model
|
||||
COPY --from=Model /usr/src/Model .
|
||||
COPY --from=model /usr/src/Model .
|
||||
|
||||
WORKDIR /usr/src/CommonServer
|
||||
COPY --from=CommonServer /usr/src/CommonServer .
|
||||
COPY --from=commonserver /usr/src/CommonServer .
|
||||
|
||||
ENV PRODUCTION=true
|
||||
|
||||
|
@ -3,7 +3,7 @@
|
||||
#
|
||||
|
||||
# Pull base image nodejs image.
|
||||
FROM node:current-alpine as Base
|
||||
FROM node:current-alpine AS base
|
||||
USER root
|
||||
RUN mkdir /tmp/npm && chmod 2777 /tmp/npm && chown 1000:1000 /tmp/npm && npm config set cache /tmp/npm --global
|
||||
|
||||
@ -29,7 +29,7 @@ RUN mkdir /usr/src
|
||||
|
||||
# Install common
|
||||
|
||||
FROM Base AS Common
|
||||
FROM base AS common
|
||||
WORKDIR /usr/src/Common
|
||||
COPY ./Common/package*.json /usr/src/Common/
|
||||
RUN npm install
|
||||
@ -38,7 +38,7 @@ COPY ./Common /usr/src/Common
|
||||
|
||||
# Install Model
|
||||
|
||||
FROM Base AS Model
|
||||
FROM base AS model
|
||||
WORKDIR /usr/src/Model
|
||||
COPY ./Model/package*.json /usr/src/Model/
|
||||
RUN npm install
|
||||
@ -48,7 +48,7 @@ COPY ./Model /usr/src/Model
|
||||
|
||||
# Install CommonServer
|
||||
|
||||
FROM Base AS CommonServer
|
||||
FROM Base AS commonserver
|
||||
WORKDIR /usr/src/CommonServer
|
||||
COPY ./CommonServer/package*.json /usr/src/CommonServer/
|
||||
RUN npm install
|
||||
@ -56,16 +56,16 @@ COPY ./CommonServer /usr/src/CommonServer
|
||||
|
||||
|
||||
# Install app
|
||||
FROM Base AS App
|
||||
FROM base AS app
|
||||
|
||||
WORKDIR /usr/src/Common
|
||||
COPY --from=Common /usr/src/Common .
|
||||
COPY --from=common /usr/src/Common .
|
||||
|
||||
WORKDIR /usr/src/Model
|
||||
COPY --from=Model /usr/src/Model .
|
||||
COPY --from=model /usr/src/Model .
|
||||
|
||||
WORKDIR /usr/src/CommonServer
|
||||
COPY --from=CommonServer /usr/src/CommonServer .
|
||||
COPY --from=commonserver /usr/src/CommonServer .
|
||||
|
||||
ENV PRODUCTION=true
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
# Pull base image nodejs image.
|
||||
FROM node:current-alpine as Base
|
||||
FROM node:current-alpine AS base
|
||||
USER root
|
||||
RUN mkdir /tmp/npm && chmod 2777 /tmp/npm && chown 1000:1000 /tmp/npm && npm config set cache /tmp/npm --global
|
||||
|
||||
@ -21,7 +21,7 @@ RUN mkdir /usr/src
|
||||
|
||||
# Install common
|
||||
|
||||
FROM Base AS Common
|
||||
FROM base AS common
|
||||
WORKDIR /usr/src/Common
|
||||
COPY ./Common/package*.json /usr/src/Common/
|
||||
RUN npm install
|
||||
@ -30,7 +30,7 @@ COPY ./Common /usr/src/Common
|
||||
|
||||
# Install Model
|
||||
|
||||
FROM Base AS Model
|
||||
FROM base AS model
|
||||
WORKDIR /usr/src/Model
|
||||
COPY ./Model/package*.json /usr/src/Model/
|
||||
RUN npm install
|
||||
@ -40,7 +40,7 @@ COPY ./Model /usr/src/Model
|
||||
|
||||
# Install CommonServer
|
||||
|
||||
FROM Base AS CommonServer
|
||||
FROM Base AS commonserver
|
||||
WORKDIR /usr/src/CommonServer
|
||||
COPY ./CommonServer/package*.json /usr/src/CommonServer/
|
||||
RUN npm install
|
||||
|
@ -3,7 +3,7 @@
|
||||
#
|
||||
|
||||
# Pull base image nodejs image.
|
||||
FROM node:current-alpine as Base
|
||||
FROM node:current-alpine AS base
|
||||
USER root
|
||||
RUN mkdir /tmp/npm && chmod 2777 /tmp/npm && chown 1000:1000 /tmp/npm && npm config set cache /tmp/npm --global
|
||||
|
||||
@ -17,16 +17,16 @@ ENV APP_VERSION=${APP_VERSION}
|
||||
|
||||
#SET ENV Variables.
|
||||
# Install app
|
||||
FROM Base AS App
|
||||
FROM base AS app
|
||||
|
||||
WORKDIR /usr/src/Common
|
||||
COPY --from=Common /usr/src/Common .
|
||||
COPY --from=common /usr/src/Common .
|
||||
|
||||
WORKDIR /usr/src/Model
|
||||
COPY --from=Model /usr/src/Model .
|
||||
COPY --from=model /usr/src/Model .
|
||||
|
||||
WORKDIR /usr/src/CommonServer
|
||||
COPY --from=CommonServer /usr/src/CommonServer .
|
||||
COPY --from=commonserver /usr/src/CommonServer .
|
||||
|
||||
ENV PRODUCTION=true
|
||||
ENV PUPPETEER_SKIP_CHROMIUM_DOWNLOAD=true
|
||||
@ -42,7 +42,7 @@ RUN mkdir /usr/src
|
||||
|
||||
# Install common
|
||||
|
||||
FROM Base AS Common
|
||||
FROM base AS common
|
||||
WORKDIR /usr/src/Common
|
||||
COPY ./Common/package*.json /usr/src/Common/
|
||||
RUN npm install
|
||||
@ -51,7 +51,7 @@ COPY ./Common /usr/src/Common
|
||||
|
||||
# Install Model
|
||||
|
||||
FROM Base AS Model
|
||||
FROM base AS model
|
||||
WORKDIR /usr/src/Model
|
||||
COPY ./Model/package*.json /usr/src/Model/
|
||||
RUN npm install
|
||||
@ -60,7 +60,7 @@ COPY ./Model /usr/src/Model
|
||||
|
||||
# Install CommonServer
|
||||
|
||||
FROM Base AS CommonServer
|
||||
FROM Base AS commonserver
|
||||
WORKDIR /usr/src/CommonServer
|
||||
COPY ./CommonServer/package*.json /usr/src/CommonServer/
|
||||
RUN npm install
|
||||
|
@ -3,7 +3,7 @@
|
||||
#
|
||||
|
||||
# Pull base image nodejs image.
|
||||
FROM node:current-alpine as Base
|
||||
FROM node:current-alpine AS base
|
||||
USER root
|
||||
RUN mkdir /tmp/npm && chmod 2777 /tmp/npm && chown 1000:1000 /tmp/npm && npm config set cache /tmp/npm --global
|
||||
|
||||
@ -29,7 +29,7 @@ RUN mkdir /usr/src
|
||||
|
||||
# Install common
|
||||
|
||||
FROM Base AS Common
|
||||
FROM base AS common
|
||||
WORKDIR /usr/src/Common
|
||||
COPY ./Common/package*.json /usr/src/Common/
|
||||
RUN npm install
|
||||
@ -38,7 +38,7 @@ COPY ./Common /usr/src/Common
|
||||
|
||||
# Install Model
|
||||
|
||||
FROM Base AS Model
|
||||
FROM base AS model
|
||||
WORKDIR /usr/src/Model
|
||||
COPY ./Model/package*.json /usr/src/Model/
|
||||
RUN npm install
|
||||
@ -48,7 +48,7 @@ COPY ./Model /usr/src/Model
|
||||
|
||||
# Install CommonServer
|
||||
|
||||
FROM Base AS CommonServer
|
||||
FROM Base AS commonserver
|
||||
WORKDIR /usr/src/CommonServer
|
||||
COPY ./CommonServer/package*.json /usr/src/CommonServer/
|
||||
RUN npm install
|
||||
@ -58,16 +58,16 @@ COPY ./CommonServer /usr/src/CommonServer
|
||||
|
||||
#SET ENV Variables
|
||||
# Install app
|
||||
FROM Base AS App
|
||||
FROM base AS app
|
||||
|
||||
WORKDIR /usr/src/Common
|
||||
COPY --from=Common /usr/src/Common .
|
||||
COPY --from=common /usr/src/Common .
|
||||
|
||||
WORKDIR /usr/src/Model
|
||||
COPY --from=Model /usr/src/Model .
|
||||
COPY --from=model /usr/src/Model .
|
||||
|
||||
WORKDIR /usr/src/CommonServer
|
||||
COPY --from=CommonServer /usr/src/CommonServer .
|
||||
COPY --from=commonserver /usr/src/CommonServer .
|
||||
|
||||
ENV PRODUCTION=true
|
||||
|
||||
|
@ -3,7 +3,7 @@
|
||||
#
|
||||
|
||||
# Pull base image nodejs image.
|
||||
FROM node:current-alpine as Base
|
||||
FROM node:current-alpine AS base
|
||||
USER root
|
||||
RUN mkdir /tmp/npm && chmod 2777 /tmp/npm && chown 1000:1000 /tmp/npm && npm config set cache /tmp/npm --global
|
||||
|
||||
@ -29,7 +29,7 @@ RUN mkdir /usr/src
|
||||
|
||||
# Install common
|
||||
|
||||
FROM Base AS Common
|
||||
FROM base AS common
|
||||
WORKDIR /usr/src/Common
|
||||
COPY ./Common/package*.json /usr/src/Common/
|
||||
RUN npm install
|
||||
@ -38,7 +38,7 @@ COPY ./Common /usr/src/Common
|
||||
|
||||
# Install Model
|
||||
|
||||
FROM Base AS Model
|
||||
FROM base AS model
|
||||
WORKDIR /usr/src/Model
|
||||
COPY ./Model/package*.json /usr/src/Model/
|
||||
RUN npm install
|
||||
@ -48,7 +48,7 @@ COPY ./Model /usr/src/Model
|
||||
|
||||
# Install CommonServer
|
||||
|
||||
FROM Base AS CommonServer
|
||||
FROM Base AS commonserver
|
||||
WORKDIR /usr/src/CommonServer
|
||||
COPY ./CommonServer/package*.json /usr/src/CommonServer/
|
||||
RUN npm install
|
||||
@ -58,16 +58,16 @@ COPY ./CommonServer /usr/src/CommonServer
|
||||
|
||||
#SET ENV Variables
|
||||
# Install app
|
||||
FROM Base AS App
|
||||
FROM base AS app
|
||||
|
||||
WORKDIR /usr/src/Common
|
||||
COPY --from=Common /usr/src/Common .
|
||||
COPY --from=common /usr/src/Common .
|
||||
|
||||
WORKDIR /usr/src/Model
|
||||
COPY --from=Model /usr/src/Model .
|
||||
COPY --from=model /usr/src/Model .
|
||||
|
||||
WORKDIR /usr/src/CommonServer
|
||||
COPY --from=CommonServer /usr/src/CommonServer .
|
||||
COPY --from=commonserver /usr/src/CommonServer .
|
||||
|
||||
ENV PRODUCTION=true
|
||||
|
||||
|
@ -3,7 +3,7 @@
|
||||
#
|
||||
|
||||
# Pull base image nodejs image.
|
||||
FROM node:current-alpine as Base
|
||||
FROM node:current-alpine AS base
|
||||
USER root
|
||||
RUN mkdir /tmp/npm && chmod 2777 /tmp/npm && chown 1000:1000 /tmp/npm && npm config set cache /tmp/npm --global
|
||||
|
||||
@ -25,7 +25,7 @@ RUN mkdir /usr/src
|
||||
|
||||
# Install common
|
||||
|
||||
FROM Base AS Common
|
||||
FROM base AS common
|
||||
WORKDIR /usr/src/Common
|
||||
COPY ./Common/package*.json /usr/src/Common/
|
||||
RUN npm install
|
||||
@ -34,7 +34,7 @@ COPY ./Common /usr/src/Common
|
||||
|
||||
# Install Model
|
||||
|
||||
FROM Base AS Model
|
||||
FROM base AS model
|
||||
WORKDIR /usr/src/Model
|
||||
COPY ./Model/package*.json /usr/src/Model/
|
||||
RUN npm install
|
||||
@ -44,7 +44,7 @@ COPY ./Model /usr/src/Model
|
||||
|
||||
# Install CommonServer
|
||||
|
||||
FROM Base AS CommonServer
|
||||
FROM Base AS commonserver
|
||||
WORKDIR /usr/src/CommonServer
|
||||
COPY ./CommonServer/package*.json /usr/src/CommonServer/
|
||||
RUN npm install
|
||||
@ -54,16 +54,16 @@ COPY ./CommonServer /usr/src/CommonServer
|
||||
|
||||
#SET ENV Variables
|
||||
# Install app
|
||||
FROM Base AS App
|
||||
FROM base AS app
|
||||
|
||||
WORKDIR /usr/src/Common
|
||||
COPY --from=Common /usr/src/Common .
|
||||
COPY --from=common /usr/src/Common .
|
||||
|
||||
WORKDIR /usr/src/Model
|
||||
COPY --from=Model /usr/src/Model .
|
||||
COPY --from=model /usr/src/Model .
|
||||
|
||||
WORKDIR /usr/src/CommonServer
|
||||
COPY --from=CommonServer /usr/src/CommonServer .
|
||||
COPY --from=commonserver /usr/src/CommonServer .
|
||||
|
||||
ENV PRODUCTION=true
|
||||
|
||||
|
@ -3,7 +3,7 @@
|
||||
#
|
||||
|
||||
# Pull base image nodejs image.
|
||||
FROM node:current-alpine as Base
|
||||
FROM node:current-alpine AS base
|
||||
USER root
|
||||
RUN mkdir /tmp/npm && chmod 2777 /tmp/npm && chown 1000:1000 /tmp/npm && npm config set cache /tmp/npm --global
|
||||
|
||||
@ -29,7 +29,7 @@ RUN mkdir /usr/src
|
||||
|
||||
# Install common
|
||||
|
||||
FROM Base AS Common
|
||||
FROM base AS common
|
||||
WORKDIR /usr/src/Common
|
||||
COPY ./Common/package*.json /usr/src/Common/
|
||||
RUN npm install
|
||||
@ -38,7 +38,7 @@ COPY ./Common /usr/src/Common
|
||||
|
||||
# Install Model
|
||||
|
||||
FROM Base AS Model
|
||||
FROM base AS model
|
||||
WORKDIR /usr/src/Model
|
||||
COPY ./Model/package*.json /usr/src/Model/
|
||||
RUN npm install
|
||||
@ -47,7 +47,7 @@ COPY ./Model /usr/src/Model
|
||||
|
||||
# Install CommonServer
|
||||
|
||||
FROM Base AS CommonServer
|
||||
FROM Base AS commonserver
|
||||
WORKDIR /usr/src/CommonServer
|
||||
COPY ./CommonServer/package*.json /usr/src/CommonServer/
|
||||
RUN npm install
|
||||
@ -57,16 +57,16 @@ COPY ./CommonServer /usr/src/CommonServer
|
||||
|
||||
#SET ENV Variables
|
||||
# Install app
|
||||
FROM Base AS App
|
||||
FROM base AS app
|
||||
|
||||
WORKDIR /usr/src/Common
|
||||
COPY --from=Common /usr/src/Common .
|
||||
COPY --from=common /usr/src/Common .
|
||||
|
||||
WORKDIR /usr/src/Model
|
||||
COPY --from=Model /usr/src/Model .
|
||||
COPY --from=model /usr/src/Model .
|
||||
|
||||
WORKDIR /usr/src/CommonServer
|
||||
COPY --from=CommonServer /usr/src/CommonServer .
|
||||
COPY --from=commonserver /usr/src/CommonServer .
|
||||
|
||||
ENV PRODUCTION=true
|
||||
|
||||
|
@ -3,7 +3,7 @@
|
||||
#
|
||||
|
||||
# Pull base image nodejs image.
|
||||
FROM node:current-alpine as Base
|
||||
FROM node:current-alpine AS base
|
||||
USER root
|
||||
RUN mkdir /tmp/npm && chmod 2777 /tmp/npm && chown 1000:1000 /tmp/npm && npm config set cache /tmp/npm --global
|
||||
|
||||
@ -25,7 +25,7 @@ RUN mkdir /usr/src
|
||||
|
||||
# Install common
|
||||
|
||||
FROM Base AS Common
|
||||
FROM base AS common
|
||||
WORKDIR /usr/src/Common
|
||||
COPY ./Common/package*.json /usr/src/Common/
|
||||
RUN npm install
|
||||
@ -34,7 +34,7 @@ COPY ./Common /usr/src/Common
|
||||
|
||||
# Install Model
|
||||
|
||||
FROM Base AS Model
|
||||
FROM base AS model
|
||||
WORKDIR /usr/src/Model
|
||||
COPY ./Model/package*.json /usr/src/Model/
|
||||
RUN npm install
|
||||
@ -44,7 +44,7 @@ COPY ./Model /usr/src/Model
|
||||
|
||||
# Install CommonServer
|
||||
|
||||
FROM Base AS CommonServer
|
||||
FROM Base AS commonserver
|
||||
WORKDIR /usr/src/CommonServer
|
||||
COPY ./CommonServer/package*.json /usr/src/CommonServer/
|
||||
RUN npm install
|
||||
@ -54,16 +54,16 @@ COPY ./CommonServer /usr/src/CommonServer
|
||||
|
||||
#SET ENV Variables
|
||||
# Install app
|
||||
FROM Base AS App
|
||||
FROM base AS app
|
||||
|
||||
WORKDIR /usr/src/Common
|
||||
COPY --from=Common /usr/src/Common .
|
||||
COPY --from=common /usr/src/Common .
|
||||
|
||||
WORKDIR /usr/src/Model
|
||||
COPY --from=Model /usr/src/Model .
|
||||
COPY --from=model /usr/src/Model .
|
||||
|
||||
WORKDIR /usr/src/CommonServer
|
||||
COPY --from=CommonServer /usr/src/CommonServer .
|
||||
COPY --from=commonserver /usr/src/CommonServer .
|
||||
|
||||
ENV PRODUCTION=true
|
||||
ENV CHROME_PATH=/usr/bin/chromium
|
||||
|
@ -3,7 +3,7 @@
|
||||
#
|
||||
|
||||
# Pull base image nodejs image.
|
||||
FROM node:current-alpine as Base
|
||||
FROM node:current-alpine AS base
|
||||
USER root
|
||||
RUN mkdir /tmp/npm && chmod 2777 /tmp/npm && chown 1000:1000 /tmp/npm && npm config set cache /tmp/npm --global
|
||||
|
||||
@ -32,7 +32,7 @@ RUN mkdir /usr/src
|
||||
|
||||
# Install common
|
||||
|
||||
FROM Base AS Common
|
||||
FROM base AS common
|
||||
WORKDIR /usr/src/Common
|
||||
COPY ./Common/package*.json /usr/src/Common/
|
||||
RUN npm install
|
||||
@ -41,7 +41,7 @@ COPY ./Common /usr/src/Common
|
||||
|
||||
# Install Model
|
||||
|
||||
FROM Base AS Model
|
||||
FROM base AS model
|
||||
WORKDIR /usr/src/Model
|
||||
COPY ./Model/package*.json /usr/src/Model/
|
||||
RUN npm install
|
||||
@ -51,7 +51,7 @@ COPY ./Model /usr/src/Model
|
||||
|
||||
# Install CommonServer
|
||||
|
||||
FROM Base AS CommonServer
|
||||
FROM Base AS commonserver
|
||||
WORKDIR /usr/src/CommonServer
|
||||
COPY ./CommonServer/package*.json /usr/src/CommonServer/
|
||||
RUN npm install
|
||||
@ -61,16 +61,16 @@ COPY ./CommonServer /usr/src/CommonServer
|
||||
|
||||
#SET ENV Variables
|
||||
# Install app
|
||||
FROM Base AS App
|
||||
FROM base AS app
|
||||
|
||||
WORKDIR /usr/src/Common
|
||||
COPY --from=Common /usr/src/Common .
|
||||
COPY --from=common /usr/src/Common .
|
||||
|
||||
WORKDIR /usr/src/Model
|
||||
COPY --from=Model /usr/src/Model .
|
||||
COPY --from=model /usr/src/Model .
|
||||
|
||||
WORKDIR /usr/src/CommonServer
|
||||
COPY --from=CommonServer /usr/src/CommonServer .
|
||||
COPY --from=commonserver /usr/src/CommonServer .
|
||||
|
||||
ENV PRODUCTION=true
|
||||
|
||||
|
@ -3,7 +3,7 @@
|
||||
#
|
||||
|
||||
# Pull base image nodejs image.
|
||||
FROM node:current-alpine as Base
|
||||
FROM node:current-alpine AS base
|
||||
USER root
|
||||
RUN mkdir /tmp/npm && chmod 2777 /tmp/npm && chown 1000:1000 /tmp/npm && npm config set cache /tmp/npm --global
|
||||
|
||||
@ -29,7 +29,7 @@ RUN mkdir /usr/src
|
||||
|
||||
# Install common
|
||||
|
||||
FROM Base AS Common
|
||||
FROM base AS common
|
||||
WORKDIR /usr/src/Common
|
||||
COPY ./Common/package*.json /usr/src/Common/
|
||||
RUN npm install
|
||||
@ -38,7 +38,7 @@ COPY ./Common /usr/src/Common
|
||||
|
||||
# Install Model
|
||||
|
||||
FROM Base AS Model
|
||||
FROM base AS model
|
||||
WORKDIR /usr/src/Model
|
||||
COPY ./Model/package*.json /usr/src/Model/
|
||||
RUN npm install
|
||||
@ -48,7 +48,7 @@ COPY ./Model /usr/src/Model
|
||||
|
||||
# Install CommonServer
|
||||
|
||||
FROM Base AS CommonServer
|
||||
FROM Base AS commonserver
|
||||
WORKDIR /usr/src/CommonServer
|
||||
COPY ./CommonServer/package*.json /usr/src/CommonServer/
|
||||
RUN npm install
|
||||
@ -58,16 +58,16 @@ COPY ./CommonServer /usr/src/CommonServer
|
||||
|
||||
#SET ENV Variables
|
||||
# Install app
|
||||
FROM Base AS App
|
||||
FROM base AS app
|
||||
|
||||
WORKDIR /usr/src/Common
|
||||
COPY --from=Common /usr/src/Common .
|
||||
COPY --from=common /usr/src/Common .
|
||||
|
||||
WORKDIR /usr/src/Model
|
||||
COPY --from=Model /usr/src/Model .
|
||||
COPY --from=model /usr/src/Model .
|
||||
|
||||
WORKDIR /usr/src/CommonServer
|
||||
COPY --from=CommonServer /usr/src/CommonServer .
|
||||
COPY --from=commonserver /usr/src/CommonServer .
|
||||
|
||||
ENV PRODUCTION=true
|
||||
|
||||
|
@ -3,7 +3,7 @@
|
||||
#
|
||||
|
||||
# Pull base image nodejs image.
|
||||
FROM node:current-alpine as Base
|
||||
FROM node:current-alpine AS base
|
||||
USER root
|
||||
RUN mkdir /tmp/npm && chmod 2777 /tmp/npm && chown 1000:1000 /tmp/npm && npm config set cache /tmp/npm --global
|
||||
|
||||
@ -16,16 +16,16 @@ ENV APP_VERSION=${APP_VERSION}
|
||||
|
||||
#SET ENV Variables
|
||||
# Install app
|
||||
FROM Base AS App
|
||||
FROM base AS app
|
||||
|
||||
WORKDIR /usr/src/Common
|
||||
COPY --from=Common /usr/src/Common .
|
||||
COPY --from=common /usr/src/Common .
|
||||
|
||||
WORKDIR /usr/src/Model
|
||||
COPY --from=Model /usr/src/Model .
|
||||
COPY --from=model /usr/src/Model .
|
||||
|
||||
WORKDIR /usr/src/CommonServer
|
||||
COPY --from=CommonServer /usr/src/CommonServer .
|
||||
COPY --from=commonserver /usr/src/CommonServer .
|
||||
|
||||
ENV PRODUCTION=true
|
||||
|
||||
@ -40,7 +40,7 @@ RUN mkdir /usr/src
|
||||
|
||||
# Install common
|
||||
|
||||
FROM Base AS Common
|
||||
FROM base AS common
|
||||
WORKDIR /usr/src/Common
|
||||
COPY ./Common/package*.json /usr/src/Common/
|
||||
RUN npm install
|
||||
@ -49,7 +49,7 @@ COPY ./Common /usr/src/Common
|
||||
|
||||
# Install Model
|
||||
|
||||
FROM Base AS Model
|
||||
FROM base AS model
|
||||
WORKDIR /usr/src/Model
|
||||
COPY ./Model/package*.json /usr/src/Model/
|
||||
RUN npm install
|
||||
@ -59,7 +59,7 @@ COPY ./Model /usr/src/Model
|
||||
|
||||
# Install CommonServer
|
||||
|
||||
FROM Base AS CommonServer
|
||||
FROM Base AS commonserver
|
||||
WORKDIR /usr/src/CommonServer
|
||||
COPY ./CommonServer/package*.json /usr/src/CommonServer/
|
||||
RUN npm install
|
||||
|
@ -3,7 +3,7 @@
|
||||
#
|
||||
|
||||
# Pull base image nodejs image.
|
||||
FROM node:current-alpine as Base
|
||||
FROM node:current-alpine AS base
|
||||
USER root
|
||||
RUN mkdir /tmp/npm && chmod 2777 /tmp/npm && chown 1000:1000 /tmp/npm && npm config set cache /tmp/npm --global
|
||||
|
||||
@ -26,7 +26,7 @@ RUN mkdir /usr/src
|
||||
|
||||
# Install common
|
||||
|
||||
FROM Base AS Common
|
||||
FROM base AS common
|
||||
WORKDIR /usr/src/Common
|
||||
COPY ./Common/package*.json /usr/src/Common/
|
||||
RUN npm install
|
||||
@ -35,7 +35,7 @@ COPY ./Common /usr/src/Common
|
||||
|
||||
# Install Model
|
||||
|
||||
FROM Base AS Model
|
||||
FROM base AS model
|
||||
WORKDIR /usr/src/Model
|
||||
COPY ./Model/package*.json /usr/src/Model/
|
||||
RUN npm install
|
||||
@ -45,7 +45,7 @@ COPY ./Model /usr/src/Model
|
||||
|
||||
# Install CommonServer
|
||||
|
||||
FROM Base AS CommonServer
|
||||
FROM Base AS commonserver
|
||||
WORKDIR /usr/src/CommonServer
|
||||
COPY ./CommonServer/package*.json /usr/src/CommonServer/
|
||||
RUN npm install
|
||||
@ -54,7 +54,7 @@ COPY ./CommonServer /usr/src/CommonServer
|
||||
|
||||
# Install CommonUI
|
||||
|
||||
FROM Base AS CommonUI
|
||||
FROM Base AS commonui
|
||||
WORKDIR /usr/src/CommonUI
|
||||
COPY ./CommonUI/package*.json /usr/src/CommonUI/
|
||||
RUN npm install --force
|
||||
@ -64,19 +64,19 @@ COPY ./CommonUI /usr/src/CommonUI
|
||||
|
||||
#SET ENV Variables
|
||||
# Install app
|
||||
FROM Base AS App
|
||||
FROM base AS app
|
||||
|
||||
WORKDIR /usr/src/Common
|
||||
COPY --from=Common /usr/src/Common .
|
||||
COPY --from=common /usr/src/Common .
|
||||
|
||||
WORKDIR /usr/src/Model
|
||||
COPY --from=Model /usr/src/Model .
|
||||
COPY --from=model /usr/src/Model .
|
||||
|
||||
WORKDIR /usr/src/CommonServer
|
||||
COPY --from=CommonServer /usr/src/CommonServer .
|
||||
COPY --from=commonserver /usr/src/CommonServer .
|
||||
|
||||
WORKDIR /usr/src/CommonUI
|
||||
COPY --from=CommonUI /usr/src/CommonUI .
|
||||
COPY --from=commonui /usr/src/CommonUI .
|
||||
|
||||
ENV PRODUCTION=true
|
||||
ENV PUPPETEER_SKIP_CHROMIUM_DOWNLOAD=true
|
||||
|
@ -3,7 +3,7 @@
|
||||
#
|
||||
|
||||
# Pull base image nodejs image.
|
||||
FROM node:current-alpine as Base
|
||||
FROM node:current-alpine AS base
|
||||
USER root
|
||||
RUN mkdir /tmp/npm && chmod 2777 /tmp/npm && chown 1000:1000 /tmp/npm && npm config set cache /tmp/npm --global
|
||||
|
||||
@ -29,7 +29,7 @@ RUN mkdir /usr/src
|
||||
|
||||
# Install common
|
||||
|
||||
FROM Base AS Common
|
||||
FROM base AS common
|
||||
WORKDIR /usr/src/Common
|
||||
COPY ./Common/package*.json /usr/src/Common/
|
||||
RUN npm install
|
||||
@ -38,7 +38,7 @@ COPY ./Common /usr/src/Common
|
||||
|
||||
# Install Model
|
||||
|
||||
FROM Base AS Model
|
||||
FROM base AS model
|
||||
WORKDIR /usr/src/Model
|
||||
COPY ./Model/package*.json /usr/src/Model/
|
||||
RUN npm install
|
||||
@ -48,7 +48,7 @@ COPY ./Model /usr/src/Model
|
||||
|
||||
# Install CommonServer
|
||||
|
||||
FROM Base AS CommonServer
|
||||
FROM Base AS commonserver
|
||||
WORKDIR /usr/src/CommonServer
|
||||
COPY ./CommonServer/package*.json /usr/src/CommonServer/
|
||||
RUN npm install
|
||||
@ -58,16 +58,16 @@ COPY ./CommonServer /usr/src/CommonServer
|
||||
|
||||
#SET ENV Variables
|
||||
# Install app
|
||||
FROM Base AS App
|
||||
FROM base AS app
|
||||
|
||||
WORKDIR /usr/src/Common
|
||||
COPY --from=Common /usr/src/Common .
|
||||
COPY --from=common /usr/src/Common .
|
||||
|
||||
WORKDIR /usr/src/Model
|
||||
COPY --from=Model /usr/src/Model .
|
||||
COPY --from=model /usr/src/Model .
|
||||
|
||||
WORKDIR /usr/src/CommonServer
|
||||
COPY --from=CommonServer /usr/src/CommonServer .
|
||||
COPY --from=commonserver /usr/src/CommonServer .
|
||||
|
||||
ENV PRODUCTION=true
|
||||
|
||||
|
@ -3,7 +3,7 @@
|
||||
#
|
||||
|
||||
# Pull base image nodejs image.
|
||||
FROM node:current-alpine as Base
|
||||
FROM node:current-alpine AS base
|
||||
USER root
|
||||
RUN mkdir /tmp/npm && chmod 2777 /tmp/npm && chown 1000:1000 /tmp/npm && npm config set cache /tmp/npm --global
|
||||
|
||||
@ -32,7 +32,7 @@ RUN mkdir /usr/src
|
||||
|
||||
# Install common
|
||||
|
||||
FROM Base AS Common
|
||||
FROM base AS common
|
||||
WORKDIR /usr/src/Common
|
||||
COPY ./Common/package*.json /usr/src/Common/
|
||||
RUN npm install
|
||||
@ -41,7 +41,7 @@ COPY ./Common /usr/src/Common
|
||||
|
||||
# Install Model
|
||||
|
||||
FROM Base AS Model
|
||||
FROM base AS model
|
||||
WORKDIR /usr/src/Model
|
||||
COPY ./Model/package*.json /usr/src/Model/
|
||||
RUN npm install
|
||||
@ -51,7 +51,7 @@ COPY ./Model /usr/src/Model
|
||||
|
||||
# Install CommonServer
|
||||
|
||||
FROM Base AS CommonServer
|
||||
FROM Base AS commonserver
|
||||
WORKDIR /usr/src/CommonServer
|
||||
COPY ./CommonServer/package*.json /usr/src/CommonServer/
|
||||
RUN npm install
|
||||
@ -61,16 +61,16 @@ COPY ./CommonServer /usr/src/CommonServer
|
||||
|
||||
#SET ENV Variables
|
||||
# Install app
|
||||
FROM Base AS App
|
||||
FROM base AS app
|
||||
|
||||
WORKDIR /usr/src/Common
|
||||
COPY --from=Common /usr/src/Common .
|
||||
COPY --from=common /usr/src/Common .
|
||||
|
||||
WORKDIR /usr/src/Model
|
||||
COPY --from=Model /usr/src/Model .
|
||||
COPY --from=model /usr/src/Model .
|
||||
|
||||
WORKDIR /usr/src/CommonServer
|
||||
COPY --from=CommonServer /usr/src/CommonServer .
|
||||
COPY --from=commonserver /usr/src/CommonServer .
|
||||
|
||||
ENV PRODUCTION=true
|
||||
|
||||
|
@ -3,7 +3,7 @@
|
||||
#
|
||||
|
||||
# Pull base image nodejs image.
|
||||
FROM node:current-alpine as Base
|
||||
FROM node:current-alpine AS base
|
||||
USER root
|
||||
RUN mkdir /tmp/npm && chmod 2777 /tmp/npm && chown 1000:1000 /tmp/npm && npm config set cache /tmp/npm --global
|
||||
|
||||
@ -29,7 +29,7 @@ RUN mkdir /usr/src
|
||||
|
||||
# Install common
|
||||
|
||||
FROM Base AS Common
|
||||
FROM base AS common
|
||||
WORKDIR /usr/src/Common
|
||||
COPY ./Common/package*.json /usr/src/Common/
|
||||
RUN npm install
|
||||
@ -38,7 +38,7 @@ COPY ./Common /usr/src/Common
|
||||
|
||||
# Install Model
|
||||
|
||||
FROM Base AS Model
|
||||
FROM base AS model
|
||||
WORKDIR /usr/src/Model
|
||||
COPY ./Model/package*.json /usr/src/Model/
|
||||
RUN npm install
|
||||
@ -47,7 +47,7 @@ COPY ./Model /usr/src/Model
|
||||
|
||||
# Install CommonServer
|
||||
|
||||
FROM Base AS CommonServer
|
||||
FROM Base AS commonserver
|
||||
WORKDIR /usr/src/CommonServer
|
||||
COPY ./CommonServer/package*.json /usr/src/CommonServer/
|
||||
RUN npm install
|
||||
@ -57,16 +57,16 @@ COPY ./CommonServer /usr/src/CommonServer
|
||||
|
||||
#SET ENV Variables
|
||||
# Install app
|
||||
FROM Base AS App
|
||||
FROM base AS app
|
||||
|
||||
WORKDIR /usr/src/Common
|
||||
COPY --from=Common /usr/src/Common .
|
||||
COPY --from=common /usr/src/Common .
|
||||
|
||||
WORKDIR /usr/src/Model
|
||||
COPY --from=Model /usr/src/Model .
|
||||
COPY --from=model /usr/src/Model .
|
||||
|
||||
WORKDIR /usr/src/CommonServer
|
||||
COPY --from=CommonServer /usr/src/CommonServer .
|
||||
COPY --from=commonserver /usr/src/CommonServer .
|
||||
|
||||
ENV PRODUCTION=true
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user