mirror of
https://github.com/nspcc-dev/neo-go.git
synced 2024-12-22 19:19:09 +00:00
24127c18ff
Fix the following Docker image build warning that stops privnet image build: ``` 1 warning found (use docker --debug to expand): - FromAsCasing: 'as' and 'FROM' keywords' casing do not match (line 3) ``` Signed-off-by: Anna Shaleva <shaleva.ann@nspcc.ru>
36 lines
789 B
Docker
36 lines
789 B
Docker
# Builder image
|
|
# Keep go version in sync with Build GA job.
|
|
FROM golang:1.23-alpine AS builder
|
|
|
|
# Display go version for information purposes.
|
|
RUN go version
|
|
|
|
RUN set -x \
|
|
&& apk add --no-cache git make \
|
|
&& mkdir -p /tmp
|
|
|
|
COPY . /neo-go
|
|
|
|
WORKDIR /neo-go
|
|
|
|
ARG REPO=repository
|
|
ARG VERSION=dev
|
|
|
|
RUN VERSION=$VERSION REPO=$REPO make build
|
|
|
|
# Executable image
|
|
FROM alpine
|
|
|
|
ARG VERSION=dev
|
|
LABEL version=$VERSION
|
|
|
|
WORKDIR /
|
|
|
|
COPY --from=builder /neo-go/config /config
|
|
COPY --from=builder /neo-go/.docker/privnet-entrypoint.sh /usr/bin/privnet-entrypoint.sh
|
|
COPY --from=builder /neo-go/bin/neo-go /usr/bin/neo-go
|
|
COPY --from=builder /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/
|
|
|
|
ENTRYPOINT ["/usr/bin/privnet-entrypoint.sh"]
|
|
|
|
CMD ["node", "--config-path", "/config", "--privnet"]
|