forked from getmaxun/maxun
- Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
23 lines (17 loc) · 492 Bytes
/
Dockerfile
File metadata and controls
23 lines (17 loc) · 492 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
FROM --platform=$BUILDPLATFORM node:18-alpine AS builder
WORKDIR /app
# Copy package files
COPY package*.json ./
COPY maxun-core ./maxun-core
# Install dependencies
RUN npm install --legacy-peer-deps
# Copy frontend source code and config
COPY src ./src
COPY public ./public
COPY index.html ./
COPY vite.config.js ./
COPY tsconfig.json ./
# Expose the frontend port
EXPOSE ${FRONTEND_PORT:-5173}
# Start the frontend using the client script
CMD ["npm", "run", "client", "--", "--host"]