-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Nedimar Turatti
committed
Jan 3, 2024
1 parent
309db26
commit 73d0f2e
Showing
11 changed files
with
95 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
# syntax=docker/dockerfile:1 | ||
|
||
# Node build | ||
ARG BASE_IMAGE=alpine:3.18.3 | ||
ARG JS_IMAGE=node:16-alpine3.18 | ||
ARG JS_PLATFORM=linux/amd64 | ||
ARG GO_IMAGE=golang:1.16 | ||
|
||
FROM ${GO_IMAGE} as go-builder-1 | ||
|
||
WORKDIR /tmp/grafana | ||
|
||
COPY go.* ./ | ||
COPY Magefile.go . | ||
COPY pkg pkg | ||
COPY src src | ||
|
||
RUN go mod tidy | ||
|
||
RUN git clone https://github.com/magefile/mage | ||
RUN cd mage && go run bootstrap.go && go install |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
# syntax=docker/dockerfile:1 | ||
|
||
# Node build | ||
ARG BASE_IMAGE=alpine:3.18.3 | ||
ARG JS_IMAGE=node:16-alpine3.18 | ||
ARG JS_PLATFORM=linux/amd64 | ||
ARG GO_IMAGE=golang:1.16 | ||
|
||
ARG GO_SRC=go-builder | ||
ARG JS_SRC=js-builder | ||
|
||
FROM --platform=${JS_PLATFORM} ${JS_IMAGE} as js-builder-1 | ||
|
||
WORKDIR /tmp/grafana | ||
|
||
COPY package.json yarn.lock ./ | ||
RUN yarn install --immutable | ||
|
||
COPY tsconfig.json .prettierrc.js ./ | ||
COPY img img | ||
COPY src src | ||
COPY README.md LICENSE CHANGELOG.md . | ||
|
||
ENV NODE_ENV production |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters