Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docker上构建项目失败 #6872

Open
oneQiu opened this issue Apr 24, 2024 · 3 comments
Open

docker上构建项目失败 #6872

oneQiu opened this issue Apr 24, 2024 · 3 comments
Assignees
Labels

Comments

@oneQiu
Copy link

oneQiu commented Apr 24, 2024

这是我的Dockerfile

# 使用官方的node镜像作为基础镜像
FROM node:alpine as builder

# 设置工作目录
WORKDIR /app

# 将package.json和package-lock.json复制到工作目录
COPY package.json ./
COPY .npmrc ./

# 安装依赖
RUN npm install -g pnpm
RUN pnpm --version
RUN pnpm install

# 将项目的所有文件复制到工作目录
COPY . .

# 构建项目
RUN npm run build

# 使用官方的nginx镜像作为基础镜像
FROM nginx:stable-alpine

# 从第一个阶段中复制构建好的项目到nginx的html目录
COPY --from=builder /app/build /usr/share/nginx/html

# 暴露80端口
EXPOSE 80

# 启动nginx
CMD ["nginx", "-g", "daemon off;"]

这是报错:
image

@ClarkXia
Copy link
Collaborator

image
linux-arm64 的确不支持,我们看下

@oneQiu
Copy link
Author

oneQiu commented Apr 29, 2024

image linux-arm64 的确不支持,我们看下

大概什么时候支持呢,最近需要上线了

@ClarkXia
Copy link
Collaborator

ClarkXia commented May 6, 2024

大概什么时候支持呢,最近需要上线了

本周四发布版本支持,预计明天发布 beta 版本提供验证

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants