mirror of https://github.com/msgbyte/tailchat
chore: 增加前端docker配置
parent
84354803c3
commit
17ccdc0ae5
@ -0,0 +1 @@
|
||||
node_modules
|
@ -0,0 +1,15 @@
|
||||
FROM node:lts-alpine
|
||||
|
||||
# Working directory
|
||||
WORKDIR /app
|
||||
|
||||
# Install dependencies
|
||||
COPY . .
|
||||
RUN npm install -g pnpm
|
||||
RUN pnpm install
|
||||
|
||||
RUN cd web
|
||||
RUN pnpm build
|
||||
|
||||
EXPOSE 11011
|
||||
CMD npx http-server -p 11011 ./dist
|
@ -0,0 +1,9 @@
|
||||
version: "3.3"
|
||||
|
||||
services:
|
||||
tailchat-web:
|
||||
build:
|
||||
context: .
|
||||
image: tailchat-web
|
||||
environment:
|
||||
SERVICE_URL: ${SERVICE_URL}
|
Loading…
Reference in New Issue