Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
N
nexpie-grafana-theme
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Registry
Registry
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kornkitt Poolsup
nexpie-grafana-theme
Commits
c89f21ba
Commit
c89f21ba
authored
Feb 07, 2018
by
Lorenz Brun
Committed by
Leonard Gram
Aug 09, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
More efficient builds and some fixes to the Go binaries
parent
a5d1fb7e
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
Dockerfile
+7
-7
No files found.
Dockerfile
View file @
c89f21ba
...
@@ -4,24 +4,24 @@ WORKDIR $GOPATH/src/github.com/grafana/grafana
...
@@ -4,24 +4,24 @@ WORKDIR $GOPATH/src/github.com/grafana/grafana
COPY
Gopkg.toml Gopkg.lock ./
COPY
Gopkg.toml Gopkg.lock ./
RUN
dep ensure
--vendor-only
RUN
dep ensure
--vendor-only
COPY
pkg pkg
COPY
pkg pkg
RUN
go install ./pkg/cmd/grafana-server
RUN
go install
-ldflags
=
"-s -w"
./pkg/cmd/grafana-server
RUN
go install ./pkg/cmd/grafana-cli
RUN
go install
-ldflags
=
"-s -w"
./pkg/cmd/grafana-cli
RUN
strip
$GOPATH
/bin/grafana-server
RUN
strip
$GOPATH
/bin/grafana-cli
FROM
node:8
FROM
node:8
WORKDIR
/usr/src/app/
WORKDIR
/usr/src/app/
COPY
package.json yarn.lock ./
COPY
package.json yarn.lock ./
RUN
yarn install
--frozen-lockfile
RUN
yarn install
--frozen-lockfile
ENV
NODE_ENV production
ENV
NODE_ENV production
COPY
. ./
COPY
Gruntfile.js tsconfig.json tslint.json ./
COPY
public public
COPY
scripts scripts
COPY
emails emails
RUN
yarn run build
RUN
yarn run build
FROM
debian:stretch-slim
FROM
debian:stretch-slim
WORKDIR
/app
WORKDIR
/app
ENV
PATH $PATH:/app/bin
ENV
PATH $PATH:/app/bin
COPY
--from=0 /go/bin/grafana-server ./bin/
COPY
--from=0 /go/bin/grafana-server /go/bin/grafana-cli ./bin/
COPY
--from=0 /go/bin/grafana-cli ./bin/
COPY
--from=1 /usr/src/app/public ./public
COPY
--from=1 /usr/src/app/public ./public
COPY
--from=1 /usr/src/app/tools ./tools
COPY
--from=1 /usr/src/app/tools ./tools
COPY
conf ./conf
COPY
conf ./conf
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment