FROM node:lts-alpine AS build-stage

ENV TZ=Asia/Bangkok

RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone

RUN mkdir /app

WORKDIR /app

COPY package.json .

ENV NODE_ENV production

RUN npm install

COPY . .

# COPY sso.js .
# COPY index.html .
# COPY public-sso .
# COPY public-landing .

EXPOSE 80

CMD ["node","sso.js"]