Skip to content

Commit

Permalink
Relax Dockerfile syntax version specifier
Browse files Browse the repository at this point in the history
Now that Dockerfile 1.4 is in stable release, this commit will relax the
Dockerfile version from 1.4 to 1, to allow further 1.x releases.

https://github.com/moby/buildkit/blob/f4eb826799e53547c793bfa83a035b8e24a2b88d/frontend/dockerfile/docs/reference.md
  • Loading branch information
br3ndonland committed Jul 9, 2022
1 parent 8cc569f commit 79ce14e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# syntax=docker/dockerfile:1.4
# syntax=docker/dockerfile:1
ARG PYTHON_VERSION=3.10 LINUX_VERSION=
FROM python:${PYTHON_VERSION}${LINUX_VERSION:+-$LINUX_VERSION} AS builder
LABEL org.opencontainers.image.authors="Brendon Smith <[email protected]>"
Expand Down
4 changes: 2 additions & 2 deletions docs/docker.md
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@ The basic build dependencies used by inboard include `gcc`, `libc-dev`, and `mak
!!! example "Example Alpine Linux _Dockerfile_ for PostgreSQL project"

```dockerfile
# syntax=docker/dockerfile:1.4
# syntax=docker/dockerfile:1
ARG INBOARD_DOCKER_TAG=fastapi-alpine
FROM ghcr.io/br3ndonland/inboard:${INBOARD_DOCKER_TAG}
ENV APP_MODULE=mypackage.main:app
Expand Down Expand Up @@ -292,7 +292,7 @@ A _Dockerfile_ equivalent to the Alpine Linux example might look like the follow
!!! example "Example Debian Linux slim _Dockerfile_ for PostgreSQL project"

```dockerfile
# syntax=docker/dockerfile:1.4
# syntax=docker/dockerfile:1
ARG INBOARD_DOCKER_TAG=fastapi-slim
FROM ghcr.io/br3ndonland/inboard:${INBOARD_DOCKER_TAG}
ENV APP_MODULE=mypackage.main:app
Expand Down

0 comments on commit 79ce14e

Please sign in to comment.