Compare commits

..

6 commits

Author SHA1 Message Date
奚玉帆
ec2a1999ee
Merge pull request #20 from sysuid/master
Update Dockerfile
2024-06-07 13:43:52 +08:00
sysuid
7539a256b4
Update Dockerfile
Remove unnecessary registry config
2024-06-07 13:38:53 +08:00
奚玉帆
5f51244edf
Merge pull request #19 from sysuid/master
Add Dockerfile and docker-compose.yml
2024-06-07 13:19:31 +08:00
sysuid
8c752fcdee
Update docker-compose.yml
add network_mode: "bridge"
2024-06-07 12:49:14 +08:00
sysuid
9ead2a17ae
Create docker-compose.yml 2024-06-07 12:38:01 +08:00
sysuid
8bb37a94fc
Create Dockerfile 2024-06-07 12:29:30 +08:00
2 changed files with 24 additions and 0 deletions

13
Dockerfile Normal file
View file

@ -0,0 +1,13 @@
FROM node:22
WORKDIR /app
COPY yarn.lock package.json ./
RUN yarn install
COPY . .
EXPOSE 5173
CMD ["yarn", "dev", "--host", "0.0.0.0"]

11
docker-compose.yml Normal file
View file

@ -0,0 +1,11 @@
version: "3.5"
services:
k5web:
build: .
container_name: k5web
network_mode: "bridge"
ports:
- "5173:5173"
environment:
- TZ=Asia/Shanghai
restart: always