Skip to content

Commit

Permalink
Update casing for "as" keyword in Dockerfile
Browse files Browse the repository at this point in the history
There is now a noisy linting warning about it being lowercase.

Changing to uppercase makes the warning go away.

Signed-off-by: Alex Ellis (OpenFaaS Ltd) <[email protected]>
  • Loading branch information
alexellis committed Jul 31, 2024
1 parent 9788a4c commit 8b0773f
Show file tree
Hide file tree
Showing 15 changed files with 25 additions and 25 deletions.
4 changes: 2 additions & 2 deletions template/bun/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
FROM --platform=${TARGETPLATFORM:-linux/amd64} ghcr.io/openfaas/of-watchdog:0.10.4 as watchdog
FROM --platform=${TARGETPLATFORM:-linux/amd64} oven/bun:1.0-alpine as ship
FROM --platform=${TARGETPLATFORM:-linux/amd64} ghcr.io/openfaas/of-watchdog:0.10.4 AS watchdog
FROM --platform=${TARGETPLATFORM:-linux/amd64} oven/bun:1.0-alpine AS ship

ARG TARGETPLATFORM
ARG BUILDPLATFORM
Expand Down
4 changes: 2 additions & 2 deletions template/csharp/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
FROM ghcr.io/openfaas/classic-watchdog:0.3.1 as watchdog
FROM ghcr.io/openfaas/classic-watchdog:0.3.1 AS watchdog

FROM mcr.microsoft.com/dotnet/core/sdk:3.1 as builder
FROM mcr.microsoft.com/dotnet/core/sdk:3.1 AS builder

# Supress collection of data.
ENV DOTNET_CLI_TELEMETRY_OPTOUT 1
Expand Down
2 changes: 1 addition & 1 deletion template/dockerfile/function/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM ghcr.io/openfaas/classic-watchdog:0.3.1 as watchdog
FROM ghcr.io/openfaas/classic-watchdog:0.3.1 AS watchdog

FROM alpine:3.18

Expand Down
6 changes: 3 additions & 3 deletions template/java11/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM openjdk:11-jdk-slim as builder
FROM openjdk:11-jdk-slim AS builder

ENV GRADLE_VER=6.1.1
RUN apt-get update -qqy \
Expand Down Expand Up @@ -28,9 +28,9 @@ COPY . /home/app/
RUN gradle build
RUN find .

FROM ghcr.io/openfaas/of-watchdog:0.10.4 as watchdog
FROM ghcr.io/openfaas/of-watchdog:0.10.4 AS watchdog

FROM openjdk:11-jre-slim as ship
FROM openjdk:11-jre-slim AS ship
RUN apt-get update -qqy \
&& apt-get install -qqy \
--no-install-recommends \
Expand Down
4 changes: 2 additions & 2 deletions template/node/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
FROM --platform=${TARGETPLATFORM:-linux/amd64} ghcr.io/openfaas/classic-watchdog:0.3.1 as watchdog
FROM --platform=${TARGETPLATFORM:-linux/amd64} node:20-alpine as ship
FROM --platform=${TARGETPLATFORM:-linux/amd64} ghcr.io/openfaas/classic-watchdog:0.3.1 AS watchdog
FROM --platform=${TARGETPLATFORM:-linux/amd64} node:20-alpine AS ship

ARG TARGETPLATFORM
ARG BUILDPLATFORM
Expand Down
4 changes: 2 additions & 2 deletions template/node14/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
FROM --platform=${TARGETPLATFORM:-linux/amd64} ghcr.io/openfaas/of-watchdog:0.10.4 as watchdog
FROM --platform=${TARGETPLATFORM:-linux/amd64} node:14-alpine as ship
FROM --platform=${TARGETPLATFORM:-linux/amd64} ghcr.io/openfaas/of-watchdog:0.10.4 AS watchdog
FROM --platform=${TARGETPLATFORM:-linux/amd64} node:14-alpine AS ship

ARG TARGETPLATFORM
ARG BUILDPLATFORM
Expand Down
4 changes: 2 additions & 2 deletions template/node16/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
FROM --platform=${TARGETPLATFORM:-linux/amd64} ghcr.io/openfaas/of-watchdog:0.10.4 as watchdog
FROM --platform=${TARGETPLATFORM:-linux/amd64} node:16-alpine as ship
FROM --platform=${TARGETPLATFORM:-linux/amd64} ghcr.io/openfaas/of-watchdog:0.10.4 AS watchdog
FROM --platform=${TARGETPLATFORM:-linux/amd64} node:16-alpine AS ship

ARG TARGETPLATFORM
ARG BUILDPLATFORM
Expand Down
4 changes: 2 additions & 2 deletions template/node17/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
FROM --platform=${TARGETPLATFORM:-linux/amd64} ghcr.io/openfaas/of-watchdog:0.10.4 as watchdog
FROM --platform=${TARGETPLATFORM:-linux/amd64} node:17-alpine as ship
FROM --platform=${TARGETPLATFORM:-linux/amd64} ghcr.io/openfaas/of-watchdog:0.10.4 AS watchdog
FROM --platform=${TARGETPLATFORM:-linux/amd64} node:17-alpine AS ship

ARG TARGETPLATFORM
ARG BUILDPLATFORM
Expand Down
4 changes: 2 additions & 2 deletions template/node18/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
FROM --platform=${TARGETPLATFORM:-linux/amd64} ghcr.io/openfaas/of-watchdog:0.10.4 as watchdog
FROM --platform=${TARGETPLATFORM:-linux/amd64} node:18-alpine as ship
FROM --platform=${TARGETPLATFORM:-linux/amd64} ghcr.io/openfaas/of-watchdog:0.10.4 AS watchdog
FROM --platform=${TARGETPLATFORM:-linux/amd64} node:18-alpine AS ship

ARG TARGETPLATFORM
ARG BUILDPLATFORM
Expand Down
4 changes: 2 additions & 2 deletions template/node20/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
FROM --platform=${TARGETPLATFORM:-linux/amd64} ghcr.io/openfaas/of-watchdog:0.10.4 as watchdog
FROM --platform=${TARGETPLATFORM:-linux/amd64} node:20-alpine as ship
FROM --platform=${TARGETPLATFORM:-linux/amd64} ghcr.io/openfaas/of-watchdog:0.10.4 AS watchdog
FROM --platform=${TARGETPLATFORM:-linux/amd64} node:20-alpine AS ship

ARG TARGETPLATFORM
ARG BUILDPLATFORM
Expand Down
2 changes: 1 addition & 1 deletion template/php7/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
ARG TARGETPLATFORM
ARG BUILDPLATFORM

FROM --platform=${TARGETPLATFORM:-linux/amd64} ghcr.io/openfaas/classic-watchdog:0.3.1 as watchdog
FROM --platform=${TARGETPLATFORM:-linux/amd64} ghcr.io/openfaas/classic-watchdog:0.3.1 AS watchdog

# start with the official Composer image and name it
FROM --platform=${TARGETPLATFORM:-linux/amd64} composer:1 AS composer
Expand Down
2 changes: 1 addition & 1 deletion template/php8/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
ARG TARGETPLATFORM
ARG BUILDPLATFORM

FROM --platform=${TARGETPLATFORM:-linux/amd64} ghcr.io/openfaas/classic-watchdog:0.3.1 as watchdog
FROM --platform=${TARGETPLATFORM:-linux/amd64} ghcr.io/openfaas/classic-watchdog:0.3.1 AS watchdog

# start with the official Composer image and name it
FROM --platform=${TARGETPLATFORM:-linux/amd64} composer:latest AS composer
Expand Down
2 changes: 1 addition & 1 deletion template/python3-debian/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
ARG PYTHON_VERSION=3
FROM --platform=${TARGETPLATFORM:-linux/amd64} ghcr.io/openfaas/classic-watchdog:0.3.1 as watchdog
FROM --platform=${TARGETPLATFORM:-linux/amd64} ghcr.io/openfaas/classic-watchdog:0.3.1 AS watchdog
FROM --platform=${TARGETPLATFORM:-linux/amd64} python:${PYTHON_VERSION}

ARG TARGETPLATFORM
Expand Down
2 changes: 1 addition & 1 deletion template/python3/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
ARG PYTHON_VERSION=3
FROM --platform=${TARGETPLATFORM:-linux/amd64} ghcr.io/openfaas/classic-watchdog:0.3.1 as watchdog
FROM --platform=${TARGETPLATFORM:-linux/amd64} ghcr.io/openfaas/classic-watchdog:0.3.1 AS watchdog
FROM --platform=${TARGETPLATFORM:-linux/amd64} python:${PYTHON_VERSION}-alpine

ARG TARGETPLATFORM
Expand Down
2 changes: 1 addition & 1 deletion template/ruby/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM --platform=${TARGETPLATFORM:-linux/amd64} ghcr.io/openfaas/classic-watchdog:0.3.1 as watchdog
FROM --platform=${TARGETPLATFORM:-linux/amd64} ghcr.io/openfaas/classic-watchdog:0.3.1 AS watchdog
FROM --platform=${TARGETPLATFORM:-linux/amd64} ruby:alpine

ARG TARGETPLATFORM
Expand Down

0 comments on commit 8b0773f

Please sign in to comment.