Kaynağa Gözat

dockerfile

master
feing 7 ay önce
ebeveyn
işleme
7bb400b8fc
1 değiştirilmiş dosya ile 4 ekleme ve 2 silme
  1. 4
    2
      Dockerfile

+ 4
- 2
Dockerfile Dosyayı Görüntüle

@@ -10,13 +10,15 @@ COPY package*.json ./

# 安装依赖
RUN npm config set registry https://registry.npmmirror.com
RUN npx vite build
RUN npm install
#RUN npx vite build

# 将项目文件拷贝到工作目录
COPY . .

# 构建项目
RUN npm run build
#RUN npm run build
RUN npx vite build

# 暴露端口
EXPOSE 3000

Loading…
İptal
Kaydet