desktop: add syntax directives to dockerfile examples

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
Sebastiaan van Stijn 2022-12-08 16:42:53 +01:00
parent 4ca3621f01
commit d887f89e56
No known key found for this signature in database
GPG Key ID: 76698F39D527CE8C
3 changed files with 3 additions and 0 deletions

View File

@ -152,6 +152,7 @@ You can also check from the browser that Nginx is running:
Sample Dockerfile:
```dockerfile
# syntax=docker/dockerfile:1
FROM alpine
ENTRYPOINT ["echo", "hello friends"]

View File

@ -63,6 +63,7 @@ In the yaml file, the build context `backend` specifies that that the container
The `development` stage of the Dockerfile is defined as follows:
```dockerfile
# syntax=docker/dockerfile:1
FROM golang:1.16-alpine AS build
WORKDIR /go/src/github.com/org/repo
COPY . .

View File

@ -151,6 +151,7 @@ running in a container.
the `ENTRYPOINT`.
```dockerfile
# syntax=docker/dockerfile:1
FROM scratch
COPY --from=build /build/hello_world.wasm /hello_world.wasm
ENTRYPOINT [ "hello_world.wasm" ]