Compare commits

...

2 commits

Author SHA1 Message Date
4e9b502f2e feat: docker 2024-09-06 22:59:09 +08:00
2341c90740 chore: disable temporarily 2024-09-06 22:53:04 +08:00
3 changed files with 42 additions and 1 deletions

17
Dockerfile Normal file
View file

@ -0,0 +1,17 @@
# Step 1: Build Stage
FROM node:22
# Set working directory
WORKDIR /app
# git repo to ./
COPY . .
# Install dependencies
RUN npm install
# Build the application
RUN npm run build
ENV TZ="Asia/Singapore"
# Start the application
CMD ["npm", "start"]

24
docker-compose.yml Normal file
View file

@ -0,0 +1,24 @@
version: '3.8'
services:
mitndev:
container_name: twinkle
build:
context: .
dockerfile: Dockerfile
ports:
# 3000 -> 2703
- "2704:3000"
environment:
NEXT_PUBLIC_SPARKLE_BASE_URL: https://sparkle-demo.ryawaa.com
# Optional: Uncomment the following line if you have a .env file
# env_file:
# - .env
restart: unless-stopped
networks:
- yanacloud
networks:
yanacloud:
name: yanacloud
external: true

View file

@ -3,7 +3,7 @@
"lib": ["dom", "dom.iterable", "esnext"], "lib": ["dom", "dom.iterable", "esnext"],
"allowJs": true, "allowJs": true,
"skipLibCheck": true, "skipLibCheck": true,
"strict": true, "strict": false,
"noEmit": true, "noEmit": true,
"esModuleInterop": true, "esModuleInterop": true,
"module": "esnext", "module": "esnext",