mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Docker: Don't use legacy ENV syntax (#93218)
chore(docker): don't use legacy ENV syntax
This commit is contained in:
parent
b69af9240d
commit
2b2c94050c
@ -30,7 +30,7 @@ COPY tsconfig.json .eslintrc .editorconfig .browserslistrc .prettierrc.js ./
|
|||||||
COPY scripts scripts
|
COPY scripts scripts
|
||||||
COPY emails emails
|
COPY emails emails
|
||||||
|
|
||||||
ENV NODE_ENV production
|
ENV NODE_ENV=production
|
||||||
RUN yarn build
|
RUN yarn build
|
||||||
|
|
||||||
FROM ${GO_IMAGE} as go-builder
|
FROM ${GO_IMAGE} as go-builder
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
FROM ubuntu:xenial
|
FROM ubuntu:xenial
|
||||||
|
|
||||||
ENV DEBIAN_FRONTEND noninteractive
|
ENV DEBIAN_FRONTEND=noninteractive
|
||||||
|
|
||||||
RUN apt-get -y update
|
RUN apt-get -y update
|
||||||
RUN apt-get -y install collectd curl python-pip
|
RUN apt-get -y install collectd curl python-pip
|
||||||
|
@ -2,18 +2,18 @@ FROM centos:6.6
|
|||||||
|
|
||||||
RUN yum install -y initscripts curl tar gcc libc6-dev git
|
RUN yum install -y initscripts curl tar gcc libc6-dev git
|
||||||
|
|
||||||
ENV GOLANG_VERSION 1.4.2
|
ENV GOLANG_VERSION=1.4.2
|
||||||
|
|
||||||
RUN curl -sSL https://golang.org/dl/go$GOLANG_VERSION.src.tar.gz \
|
RUN curl -sSL https://golang.org/dl/go$GOLANG_VERSION.src.tar.gz \
|
||||||
| tar -v -C /usr/src -xz
|
| tar -v -C /usr/src -xz
|
||||||
|
|
||||||
RUN cd /usr/src/go/src && ./make.bash --no-clean 2>&1
|
RUN cd /usr/src/go/src && ./make.bash --no-clean 2>&1
|
||||||
|
|
||||||
ENV PATH /usr/src/go/bin:$PATH
|
ENV PATH=/usr/src/go/bin:$PATH
|
||||||
|
|
||||||
RUN mkdir -p /go/src /go/bin && chmod -R 777 /go
|
RUN mkdir -p /go/src /go/bin && chmod -R 777 /go
|
||||||
ENV GOPATH /go
|
ENV GOPATH=/go
|
||||||
ENV PATH /go/bin:$PATH
|
ENV PATH=/go/bin:$PATH
|
||||||
|
|
||||||
WORKDIR /go/src/github.com/grafana/grafana
|
WORKDIR /go/src/github.com/grafana/grafana
|
||||||
|
|
||||||
|
@ -7,6 +7,6 @@ WORKDIR /go/src/webhook
|
|||||||
RUN mkdir /tmp/logs
|
RUN mkdir /tmp/logs
|
||||||
RUN go build -o /bin webhook-listener.go
|
RUN go build -o /bin webhook-listener.go
|
||||||
|
|
||||||
ENV PORT 8080
|
ENV PORT=8080
|
||||||
|
|
||||||
ENTRYPOINT [ "/bin/webhook-listener" ]
|
ENTRYPOINT [ "/bin/webhook-listener" ]
|
||||||
|
Loading…
Reference in New Issue
Block a user