feat: initial commit
This commit is contained in:
@@ -0,0 +1,25 @@
|
||||
FROM node:18.16.0
|
||||
|
||||
ENV CI=true
|
||||
|
||||
# Set working directory
|
||||
WORKDIR /app
|
||||
|
||||
# Install dependencies
|
||||
RUN npm config set @strata:registry http://proget.sdt.local/npm/npm
|
||||
RUN npm config set strict-ssl false
|
||||
COPY src/Strata.Analytics.Web/analytics/package*.json ./
|
||||
RUN npm ci --legacy-peer-deps
|
||||
|
||||
# Activate Kendo UI License
|
||||
RUN --mount=type=secret,id=KENDO_UI_LICENSE \
|
||||
KENDO_UI_LICENSE=$(cat /run/secrets/KENDO_UI_LICENSE) npx kendo-ui-license activate
|
||||
|
||||
# Copy in rest of app and build
|
||||
COPY src/Strata.Analytics.Web/analytics .
|
||||
RUN npm run build
|
||||
|
||||
# Build release container
|
||||
FROM nginx:alpine
|
||||
COPY --from=0 /app/build /usr/share/nginx/html
|
||||
COPY src/Strata.Analytics.Web/nginx.conf /etc/nginx/conf.d/default.conf
|
||||
Reference in New Issue
Block a user