我可以提供你一个Dockerfile文件的示例:FROM node:latest# Create app directory WORKDIR /app# Install app dependencies COPY package*.json ./RUN npm install# Bundle app source COPY . .# Build and run the app RUN npm run buildFROM nginx:alpine# Copy built files COPY --from=0 /app/dist /usr/share/nginx/htmlEXPOSE 80CM
麻烦给我一个可以将vue项目打包成docker镜像的Dockerfile文件
最新推荐文章于 2024-02-22 13:32:27 发布