-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
32 lines (21 loc) · 877 Bytes
/
Dockerfile
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
26
27
28
29
30
31
32
# syntax=docker/dockerfile:latest
FROM alpine:latest as build
ENV BUILDX_VERS=${BUILDX_VERS:-v0.5.1}
ENV BUILDX_ARCH=${BUILDX_ARCH:-amd64}
ENV BUILDX_URL=https://github.com/docker/buildx/releases/download/${BUILDX_VERS}/buildx-${BUILDX_VERS}.linux-${BUILDX_ARCH}
WORKDIR /workspace
RUN apk add --no-cache curl
RUN curl -Lo docker-buildx ${BUILDX_URL}
FROM docker:20.10 as run
LABEL org.label-schema.name="cloud-builder-buildx" \
org.label-schema.description="cloud builder with docker buildx" \
org.label-schema.vcs-ref="latest" \
org.label-schema.vcs-url="https://github.com/eagleusb/cloud-builder-buildx" \
org.label-schema.schema-version="1.0"
USER root
WORKDIR /${USER:-root}/.docker/cli-plugins
COPY --from=build /workspace/docker-buildx .
RUN chmod +x docker-buildx && docker buildx install
ENTRYPOINT ["/usr/local/bin/docker"]
CMD []
HEALTHCHECK NONE