mirror of
				https://gitea.com/Lydanne/buildx.git
				synced 2025-11-01 00:23:56 +08:00 
			
		
		
		
	dockerfile: update frontend to 1.4
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
This commit is contained in:
		| @@ -1,4 +1,4 @@ | |||||||
| # syntax=docker/dockerfile:1.3 | # syntax=docker/dockerfile:1.4 | ||||||
|  |  | ||||||
| ARG GO_VERSION=1.17 | ARG GO_VERSION=1.17 | ||||||
| ARG DOCKERD_VERSION=20.10.8 | ARG DOCKERD_VERSION=20.10.8 | ||||||
|   | |||||||
| @@ -429,7 +429,7 @@ Attribute keys: | |||||||
| - `src`, `source` - Secret filename. `id` used if unset. | - `src`, `source` - Secret filename. `id` used if unset. | ||||||
|  |  | ||||||
| ```dockerfile | ```dockerfile | ||||||
| # syntax=docker/dockerfile:1.3 | # syntax=docker/dockerfile:1.4 | ||||||
| FROM python:3 | FROM python:3 | ||||||
| RUN pip install awscli | RUN pip install awscli | ||||||
| RUN --mount=type=secret,id=aws,target=/root/.aws/credentials \ | RUN --mount=type=secret,id=aws,target=/root/.aws/credentials \ | ||||||
| @@ -448,7 +448,7 @@ Attribute keys: | |||||||
| - `env` - Secret environment variable. `id` used if unset, otherwise will look for `src`, `source` if `id` unset. | - `env` - Secret environment variable. `id` used if unset, otherwise will look for `src`, `source` if `id` unset. | ||||||
|  |  | ||||||
| ```dockerfile | ```dockerfile | ||||||
| # syntax=docker/dockerfile:1.3 | # syntax=docker/dockerfile:1.4 | ||||||
| FROM node:alpine | FROM node:alpine | ||||||
| RUN --mount=type=bind,target=. \ | RUN --mount=type=bind,target=. \ | ||||||
|   --mount=type=secret,id=SECRET_TOKEN \ |   --mount=type=secret,id=SECRET_TOKEN \ | ||||||
| @@ -480,7 +480,7 @@ authentication (e.g., cloning a private repository). | |||||||
| Example to access Gitlab using an SSH agent socket: | Example to access Gitlab using an SSH agent socket: | ||||||
|  |  | ||||||
| ```dockerfile | ```dockerfile | ||||||
| # syntax=docker/dockerfile:1.3 | # syntax=docker/dockerfile:1.4 | ||||||
| FROM alpine | FROM alpine | ||||||
| RUN apk add --no-cache openssh-client | RUN apk add --no-cache openssh-client | ||||||
| RUN mkdir -p -m 0700 ~/.ssh && ssh-keyscan gitlab.com >> ~/.ssh/known_hosts | RUN mkdir -p -m 0700 ~/.ssh && ssh-keyscan gitlab.com >> ~/.ssh/known_hosts | ||||||
|   | |||||||
| @@ -1,4 +1,4 @@ | |||||||
| # syntax=docker/dockerfile:1.3-labs | # syntax=docker/dockerfile:1.4 | ||||||
|  |  | ||||||
| FROM alpine:3.14 AS gen | FROM alpine:3.14 AS gen | ||||||
| RUN apk add --no-cache git | RUN apk add --no-cache git | ||||||
|   | |||||||
| @@ -1,4 +1,4 @@ | |||||||
| # syntax=docker/dockerfile:1.3-labs | # syntax=docker/dockerfile:1.4 | ||||||
|  |  | ||||||
| ARG GO_VERSION=1.17 | ARG GO_VERSION=1.17 | ||||||
| ARG FORMATS=md,yaml | ARG FORMATS=md,yaml | ||||||
|   | |||||||
| @@ -1,4 +1,4 @@ | |||||||
| # syntax=docker/dockerfile:1.3 | # syntax=docker/dockerfile:1.4 | ||||||
|  |  | ||||||
| ARG GO_VERSION=1.17 | ARG GO_VERSION=1.17 | ||||||
|  |  | ||||||
|   | |||||||
| @@ -1,4 +1,4 @@ | |||||||
| # syntax=docker/dockerfile:1.3-labs | # syntax=docker/dockerfile:1.4 | ||||||
|  |  | ||||||
| ARG GO_VERSION=1.17 | ARG GO_VERSION=1.17 | ||||||
| ARG MODOUTDATED_VERSION=v0.8.0 | ARG MODOUTDATED_VERSION=v0.8.0 | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 CrazyMax
					CrazyMax