更新dockerfile

This commit is contained in:
Cold
2025-12-17 10:37:37 +08:00
parent 7171e2712c
commit ec95c7d872
4 changed files with 16 additions and 3 deletions

View File

@@ -2,4 +2,4 @@
ENV = 'development'
# 本地环境接口地址
VITE_API_URL = 'http://192.168.3.11:8808/'
VITE_API_URL = 'http://192.168.3.200:8808/'

13
Dockerfile Normal file
View File

@@ -0,0 +1,13 @@
FROM node:18-alpine
WORKDIR /app
COPY package*.json ./
RUN npm install --registry=https://registry.npmmirror.com
COPY . .
EXPOSE 5173
CMD ["npm", "run", "dev", "--", "--host", "0.0.0.0"]

View File

@@ -22,7 +22,7 @@ const service: AxiosInstance = axios.create({
const newService: AxiosInstance = axios.create({
// baseURL: 'http://192.168.3.95:8000/',
// baseURL: 'http://192.168.3.49:8000/',
baseURL: 'http://192.168.3.11:8000/',
baseURL: 'http://192.168.3.200:8000/',
timeout: 50000,
headers: { 'Content-Type': 'application/json' },
paramsSerializer: {

View File

@@ -37,7 +37,7 @@ const viteConfig = defineConfig((mode: ConfigEnv) => {
// },
proxy: {
'/api': {
target: 'http://192.168.3.49:8808',
target: 'http://192.168.3.200:8808',
changeOrigin: true,
rewrite: (path) => path.replace(/^\/api/, '/api'),
},