mirror of
https://github.com/silenty4ng/k5web
synced 2025-01-09 13:24:38 +00:00
Merge pull request #19 from sysuid/master
Add Dockerfile and docker-compose.yml
This commit is contained in:
commit
5f51244edf
2 changed files with 28 additions and 0 deletions
17
Dockerfile
Normal file
17
Dockerfile
Normal file
|
@ -0,0 +1,17 @@
|
||||||
|
FROM node:22
|
||||||
|
|
||||||
|
WORKDIR /app
|
||||||
|
|
||||||
|
COPY yarn.lock package.json ./
|
||||||
|
|
||||||
|
RUN npm config set registry https://registry.npmmirror.com
|
||||||
|
|
||||||
|
RUN yarn config set registry https://registry.npmmirror.com
|
||||||
|
|
||||||
|
RUN yarn install
|
||||||
|
|
||||||
|
COPY . .
|
||||||
|
|
||||||
|
EXPOSE 5173
|
||||||
|
|
||||||
|
CMD ["yarn", "dev", "--host", "0.0.0.0"]
|
11
docker-compose.yml
Normal file
11
docker-compose.yml
Normal 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
|
Loading…
Reference in a new issue