mirror of
https://github.com/ryanamay/twinkle.git
synced 2024-09-20 06:40:34 +00:00
Compare commits
2 commits
9e2d9c5e6b
...
4e9b502f2e
Author | SHA1 | Date | |
---|---|---|---|
4e9b502f2e | |||
2341c90740 |
3 changed files with 42 additions and 1 deletions
17
Dockerfile
Normal file
17
Dockerfile
Normal 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
24
docker-compose.yml
Normal 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
|
|
@ -3,7 +3,7 @@
|
|||
"lib": ["dom", "dom.iterable", "esnext"],
|
||||
"allowJs": true,
|
||||
"skipLibCheck": true,
|
||||
"strict": true,
|
||||
"strict": false,
|
||||
"noEmit": true,
|
||||
"esModuleInterop": true,
|
||||
"module": "esnext",
|
||||
|
|
Loading…
Reference in a new issue