From 423b8f763211a8ee76becb48779489f1dc688cfe Mon Sep 17 00:00:00 2001 From: Zach Queal <239193+zQueal@users.noreply.github.com> Date: Sun, 15 Sep 2024 18:14:37 -0400 Subject: [PATCH] Update Dockerfile ```docker 3 warnings found (use docker --debug to expand): - FromAsCasing: 'as' and 'FROM' keywords' casing do not match (line 6) - LegacyKeyValueFormat: "ENV key=value" should be used instead of legacy "ENV key value" format (line 30) - LegacyKeyValueFormat: "ENV key=value" should be used instead of legacy "ENV key value" format (line 31) ``` Updating as per docker instructions. --- Dockerfile | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index c0bc13e..c9b19e6 100644 --- a/Dockerfile +++ b/Dockerfile @@ -3,7 +3,7 @@ RUN apk add --no-cache unzip wget make COPY Makefile . RUN make setup-codemirror -FROM golang:1.22.2-alpine as builder +FROM golang:1.22.2-alpine AS builder COPY src/ /src COPY go.mod go.sum /src/go-proxy WORKDIR /src/go-proxy @@ -27,8 +27,8 @@ COPY schema/ /app/schema COPY --from=builder /src/go-proxy /app/ RUN chmod +x /app/go-proxy -ENV DOCKER_HOST unix:///var/run/docker.sock -ENV GOPROXY_DEBUG 0 +ENV DOCKER_HOST=unix:///var/run/docker.sock +ENV GOPROXY_DEBUG=0 EXPOSE 80 EXPOSE 8080 @@ -36,4 +36,4 @@ EXPOSE 443 EXPOSE 8443 WORKDIR /app -CMD ["/app/go-proxy"] \ No newline at end of file +CMD ["/app/go-proxy"]