Fix legacy Dockerfile syntax flagged by BuildKit

- 'FROM ... as build' -> 'AS' (FromAsCasing)
- 'ENV key value' -> 'ENV key=value' for USE_SINGLE_BUILDDIR and
  BOOST_DEBUG (LegacyKeyValueFormat)

No functional change; 'docker build --check' now reports no warnings.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
Seth For Privacy
2026-06-23 08:20:40 -04:00
parent df326bcf85
commit 1bb3947f60

View File

@@ -2,7 +2,7 @@
ARG P2POOL_BRANCH=v4.17
# Pin to the latest Ubuntu LTS for the build image base (kept current by Renovate)
FROM ubuntu:26.04 as build
FROM ubuntu:26.04 AS build
LABEL author="sethforprivacy@protonmail.com" \
maintainer="sethforprivacy@protonmail.com"
@@ -17,8 +17,8 @@ RUN apt-get update \
ENV CFLAGS='-fPIC'
ENV CXXFLAGS='-fPIC'
ENV USE_SINGLE_BUILDDIR 1
ENV BOOST_DEBUG 1
ENV USE_SINGLE_BUILDDIR=1
ENV BOOST_DEBUG=1
# Switch to p2pool source directory
WORKDIR /p2pool