From fd70f95224374d23157ee7c0357733102cd0df53 Mon Sep 17 00:00:00 2001 From: Alexander Neonxp Kiryukhin Date: Sun, 18 Aug 2024 13:29:54 +0300 Subject: initial --- Dockerfile | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 Dockerfile (limited to 'Dockerfile') diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..ff53f8c --- /dev/null +++ b/Dockerfile @@ -0,0 +1,28 @@ +# syntax=docker/dockerfile:1 + +FROM registry.altlinux.org/alt/node:p11 AS node +WORKDIR /app +COPY package.json /app +COPY package-lock.json /app +COPY web /app/web +RUN npm i && npm run esbuild + +FROM gitrepo.ru/base/go:1.23.0 AS go + +WORKDIR /app + +COPY go.mod go.sum ./ +RUN go mod download + +COPY . . + +RUN CGO_ENABLED=0 GOOS=linux go build -o /app/track + +FROM registry.altlinux.org/alt/alt:p11 + +WORKDIR /app + +COPY --from=go /app/track /app/track +COPY --from=node /app/web /app/web + +CMD ["/app/track"] \ No newline at end of file -- cgit v1.2.3