move to GitHub.
This commit is contained in:
10
Dockerfile
10
Dockerfile
@ -1,7 +1,7 @@
|
||||
# Copyright (C) JSC iCore - All Rights Reserved
|
||||
#
|
||||
# Unauthorized copying of this file, via any medium is strictly prohibited
|
||||
# Proprietary and confidential
|
||||
# Copyright (c) JSC iCore.
|
||||
|
||||
# This source code is licensed under the MIT license found in the
|
||||
# LICENSE file in the root directory of this source tree.
|
||||
|
||||
FROM golang:1.12-alpine AS build
|
||||
|
||||
@ -16,7 +16,7 @@ COPY go.mod .
|
||||
COPY go.sum .
|
||||
COPY cmd cmd
|
||||
COPY internal internal
|
||||
RUN env CGO_ENABLED=0 go install -ldflags="-w -s -X gopkg.i-core.ru/werther/cmd/werther.Version=${VERSION}" ./...
|
||||
RUN env CGO_ENABLED=0 go install -ldflags="-w -s -X main.version=${VERSION}" ./...
|
||||
|
||||
FROM scratch AS final
|
||||
COPY --from=build /etc/passwd /etc/passwd
|
||||
|
Reference in New Issue
Block a user