822bf96966
- Implemented CompanyNameComponent, DescriptionComponent, DeviceIdComponent, EconomicCodeComponent, EmailComponent, FirstNameComponent, FiscalCodeComponent, GuildIdComponent, LastNameComponent, LegalNameComponent, LicenseStartsAtComponent, MobileComponent, MobileNumberComponent, ModelComponent, NameComponent, NationalCodeComponent, NationalIdComponent, PartnerTokenComponent, PosTypeComponent, PostalCodeComponent, ProviderIdComponent, QuantityComponent, RegistrationCodeComponent, RegistrationNumberComponent, SerialNumberComponent, SetOffComponent, SkuComponent, TerminalComponent, UnitPriceComponent, UsernameComponent. - Added field control configurations for new fields in the form. - Updated routing and branding configurations for TIS tenant. - Created consumer type models for handling individual and legal consumer data.
34 lines
546 B
Docker
34 lines
546 B
Docker
# Build stage
|
|
FROM node:20 AS builder
|
|
|
|
ARG TENANT=tis
|
|
ARG DIST_DIR=tis
|
|
|
|
WORKDIR /app
|
|
|
|
# RUN npm config set registry "https://hub.megan.ir/npm/"
|
|
|
|
RUN npm install -g pnpm
|
|
COPY package.json pnpm-lock.yaml ./
|
|
RUN pnpm install
|
|
|
|
COPY . .
|
|
|
|
RUN if [ "$TENANT" = "default" ]; then \
|
|
pnpm run build; \
|
|
else \
|
|
pnpm run build:$TENANT; \
|
|
fi
|
|
|
|
FROM nginx:alpine
|
|
|
|
ARG DIST_DIR=tis
|
|
|
|
COPY nginx.conf /etc/nginx/nginx.conf
|
|
|
|
COPY --from=builder /app/dist/${DIST_DIR}/browser /usr/share/nginx/html
|
|
|
|
EXPOSE 5000
|
|
|
|
CMD ["nginx", "-g", "daemon off;"]
|