forked from openware/baseapp
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
40 lines (27 loc) · 809 Bytes
/
Dockerfile
File metadata and controls
40 lines (27 loc) · 809 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
FROM golang:1.15-alpine AS go-builder
WORKDIR /build
ENV CGO_ENABLED=1 \
GOOS=linux \
GOARCH=amd64
RUN apk add build-base curl
COPY go.mod go.sum ./
RUN go mod download
COPY . .
RUN make all
ARG KAIGARA_VERSION=0.1.24
# Install Kaigara
RUN curl -Lo /usr/bin/kaigara https://github.com/openware/kaigara/releases/download/${KAIGARA_VERSION}/kaigara \
&& chmod +x /usr/bin/kaigara
FROM node:15.5.0 AS client-builder
WORKDIR /build
COPY . .
RUN make asset
#Runner
FROM alpine:3.12
WORKDIR /app
COPY --from=go-builder /build/bin/* ./bin/
COPY --from=go-builder /usr/bin/kaigara /usr/bin/kaigara
COPY --from=go-builder /build/views/ ./views/
COPY --from=go-builder /build/config/app.yml ./config/app.yml
COPY --from=client-builder /build/web/build/ ./public/assets/
ENTRYPOINT ./bin/sonic serve