Merge branch 'main' into develop

This commit is contained in:
Warunee Tamkoo 2025-06-23 17:58:07 +07:00
commit a474ed9221
3 changed files with 112 additions and 10 deletions

View file

@ -1,17 +1,17 @@
# docker build . -t docker.frappet.com/demo/qualifying-exam-cms:latest
FROM node:20-alpine as build-stage
FROM node:20-alpine AS build-stage
WORKDIR /app
# optimize build speed by copy all .xx folder and
COPY *.json .
COPY *.*s .
COPY cms/*.json .
COPY cms/*.*s .
RUN npm i
COPY static ./static
COPY src ./src
# RUN ls
COPY cms/static ./static
COPY cms/src ./src
RUN npm run build
FROM node:lts-alpine
FROM node:lts-alpine AS production-stage
WORKDIR /app
COPY --from=build /app .
COPY --from=build-stage /app .
EXPOSE 80
ENV PORT=80
CMD ["node", "./build/index.js"]
CMD ["node", "./build/index.js"]

View file

@ -135,7 +135,7 @@
{#each data.positionsFalse as a}
<div class="text-lg py-1">
<div class="flex flex-wrap items-center">
{data.canRegister}
<!-- {data.canRegister} -->
{#if 'register_endDate' in data && data.canRegister}
<a
class="btn btn-sm btn-outline btn-info cursor-pointe"