mirror of
https://github.com/yusing/godoxy.git
synced 2025-05-31 00:52:35 +02:00
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.
This commit is contained in:
parent
c4d3537e6f
commit
423b8f7632
1 changed files with 4 additions and 4 deletions
|
@ -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"]
|
||||
CMD ["/app/go-proxy"]
|
||||
|
|
Loading…
Add table
Reference in a new issue