Skip to content

Commit

Permalink
fix: docker file legacy expression
Browse files Browse the repository at this point in the history
  • Loading branch information
junkurihara committed Aug 28, 2024
1 parent 9e8894d commit bee543b
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,16 @@ SHELL ["/bin/sh", "-x", "-c"]
ENV SERIAL 2

Check warning on line 4 in docker/Dockerfile

View workflow job for this annotation

GitHub Actions / docker_build_and_push (default, ./docker/Dockerfile, linux/amd64, jqtype/doh-auth-proxy:latest gh...

Legacy key/value format with whitespace separator should not be used

LegacyKeyValueFormat: "ENV key=value" should be used instead of legacy "ENV key value" format More info: https://docs.docker.com/go/dockerfile/rule/legacy-key-value-format/

########################################
FROM base as builder
FROM base AS builder

ENV CFLAGS=-Ofast
ENV BUILD_DEPS curl make ca-certificates build-essential pkg-config libssl-dev libclang-dev cmake
ARG CFLAGS=-Ofast
ARG BUILD_DEPS="curl make ca-certificates build-essential pkg-config libssl-dev libclang-dev cmake"

WORKDIR /tmp

COPY . /tmp/

ENV RUSTFLAGS "-C link-arg=-s"
ARG RUSTFLAGS="-C link-arg=-s"

RUN update-ca-certificates 2> /dev/null || true

Expand All @@ -29,7 +29,7 @@ RUN apt-get update && apt-get install -qy --no-install-recommends $BUILD_DEPS &&
FROM base AS runner
LABEL maintainer="Jun Kurihara"

ENV RUNTIME_DEPS logrotate ca-certificates gosu
ARG RUNTIME_DEPS="logrotate ca-certificates gosu"

RUN apt-get update && \
apt-get install -qy --no-install-recommends $RUNTIME_DEPS && \
Expand Down

0 comments on commit bee543b

Please sign in to comment.