Normalize FROM AS casing in Dockerfiles

This commit is contained in:
Luke Parker
2025-08-09 12:20:58 -04:00
parent 5c895efcd0
commit 8b60feed92
7 changed files with 10 additions and 10 deletions

View File

@@ -92,7 +92,7 @@ fn os(os: Os, additional_root: &str, user: &str) -> String {
match os {
Os::Alpine => format!(
r#"
FROM alpine:latest as image
FROM alpine:latest AS image
COPY --from=mimalloc-alpine libmimalloc.so /usr/lib
ENV LD_PRELOAD=libmimalloc.so
@@ -117,7 +117,7 @@ WORKDIR /home/{user}
Os::Debian => format!(
r#"
FROM debian:bookworm-slim as image
FROM debian:bookworm-slim AS image
COPY --from=mimalloc-debian libmimalloc.so /usr/lib
RUN echo "/usr/lib/libmimalloc.so" >> /etc/ld.so.preload
@@ -146,7 +146,7 @@ fn build_serai_service(prelude: &str, release: bool, features: &str, package: &s
format!(
r#"
FROM rust:1.89-slim-bookworm as builder
FROM rust:1.89-slim-bookworm AS builder
COPY --from=mimalloc-debian libmimalloc.so /usr/lib
RUN echo "/usr/lib/libmimalloc.so" >> /etc/ld.so.preload

View File

@@ -2,7 +2,7 @@ use crate::Os;
pub fn mimalloc(os: Os) -> &'static str {
const ALPINE_MIMALLOC: &str = r#"
FROM alpine:latest as mimalloc-alpine
FROM alpine:latest AS mimalloc-alpine
RUN apk update && apk upgrade && apk --no-cache add gcc g++ libc-dev make cmake git
RUN git clone https://github.com/microsoft/mimalloc && \
@@ -16,7 +16,7 @@ RUN git clone https://github.com/microsoft/mimalloc && \
"#;
const DEBIAN_MIMALLOC: &str = r#"
FROM debian:bookworm-slim as mimalloc-debian
FROM debian:bookworm-slim AS mimalloc-debian
RUN apt update && apt upgrade -y && apt install -y gcc g++ make cmake git
RUN git clone https://github.com/microsoft/mimalloc && \

View File

@@ -5,7 +5,7 @@ use crate::{Network, Os, mimalloc, os, write_dockerfile};
pub fn bitcoin(orchestration_path: &Path, network: Network) {
#[rustfmt::skip]
const DOWNLOAD_BITCOIN: &str = r#"
FROM alpine:latest as bitcoin
FROM alpine:latest AS bitcoin
ENV BITCOIN_VERSION=27.1

View File

@@ -5,7 +5,7 @@ pub fn lighthouse(network: Network) -> (String, String, String) {
#[rustfmt::skip]
const DOWNLOAD_LIGHTHOUSE: &str = r#"
FROM alpine:latest as lighthouse
FROM alpine:latest AS lighthouse
ENV LIGHTHOUSE_VERSION=5.1.3

View File

@@ -20,7 +20,7 @@ pub fn nimbus(network: Network) -> (String, String, String) {
#[rustfmt::skip]
let download_nimbus = format!(r#"
FROM alpine:latest as nimbus
FROM alpine:latest AS nimbus
ENV NIMBUS_VERSION=24.3.0
ENV NIMBUS_COMMIT=dc19b082

View File

@@ -5,7 +5,7 @@ pub fn reth(network: Network) -> (String, String, String) {
#[rustfmt::skip]
const DOWNLOAD_RETH: &str = r#"
FROM alpine:latest as reth
FROM alpine:latest AS reth
ENV RETH_VERSION=0.2.0-beta.6

View File

@@ -22,7 +22,7 @@ fn monero_internal(
#[rustfmt::skip]
let download_monero = format!(r#"
FROM alpine:latest as monero
FROM alpine:latest AS monero
RUN apk --no-cache add gnupg