-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile
44 lines (27 loc) · 919 Bytes
/
Dockerfile
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
41
42
43
44
FROM node:20 as NODEJS
WORKDIR /build/app
COPY ./app/package.json ./
COPY ./app/package-lock.json ./
RUN npm i
COPY ./app/ ./
COPY ./docs/ ../docs
RUN npm run build
FROM golang:1.22-alpine as GOLANG
ARG version=0.11.0
ARG commit=local
WORKDIR /backend
COPY ./backend/ ./
COPY --from=NODEJS /build/app/dist/ /backend/internal/ingress/web/public/
ENV CGO_ENABLED=0
RUN go build -ldflags "-X internal.Version=${version} -X internal.Commit=${commit}" .
FROM scratch
ARG version=0.10.1
ARG commit=local
LABEL maintainer="Alexander Metzner <alexander.metzner@gmail.com>" \
version=${version} \
commit=${commit} \
url="https://github.com/halimath/fate-core-remote-table" \
vcs-uri="https://github.com/halimath/fate-core-remote-table.git"
COPY --from=GOLANG /backend/backend /fate-core-remote-table
EXPOSE 8080
ENTRYPOINT [ "/fate-core-remote-table" ]