-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
25 lines (20 loc) · 772 Bytes
/
Dockerfile
File metadata and controls
25 lines (20 loc) · 772 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
# 构建器
FROM --platform=$BUILDPLATFORM docker.io/docker/docker-ce:20.10.0 AS buildx
RUN docker buildx create --use --name multiarch
# 构建ARM64镜像
FROM buildx AS edge
ARG BUILDPLATFORM
COPY Dockerfile.arm64 /
RUN echo "Building for $BUILDPLATFORM" && \
$BUILDPLATFORM=linux/arm64 docker buildx build --platform linux/arm64 -t mimage --load .
# 最后阶段
# 最后阶段
FROM edge AS final
COPY --from=mimage / /
# 安装Edge浏览器
RUN curl https://packages.microsoft.com/keys/microsoft.asc | apt-key add - && \
curl https://packages.microsoft.com/config/debian/10/prod.list > /etc/apt/sources.list.d/microsoft.list && \
apt-get update && \
apt-get install -y microsoft-edge-dev
# 设置为默认浏览器
ENV BROWSER="microsoft-edge"