Skip to content

Commit

Permalink
Merge pull request #13 from yuiseki/add-docker
Browse files Browse the repository at this point in the history
add Dockerfile and docker-compose.yml
  • Loading branch information
yuiseki committed Dec 21, 2023
2 parents 46668f5 + 4cb31a0 commit 296023c
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 1 deletion.
5 changes: 5 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
FROM node:20-slim

COPY . /app
WORKDIR /app
RUN npm ci
16 changes: 16 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
services:
base: &base
build:
context: .
dockerfile: Dockerfile
volumes:
- .:/app
working_dir: /app
http_server:
<<: *base
ports:
- 127.0.0.1:5173:5173
command: npm run dev
style_watcher:
<<: *base
command: npm run watch-style
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"version": "0.0.0",
"type": "module",
"scripts": {
"dev": "vite",
"dev": "vite --host",
"build": "tsc && vite build",
"build-style": "npx charites build styles/charites-ai/style.yml public/style.json",
"watch-style": "npx charites build -w styles/charites-ai/style.yml public/style.json",
Expand Down

0 comments on commit 296023c

Please sign in to comment.