2023-11-04 11:20:02 +00:00
|
|
|
FROM node:21-alpine as nodebuild
|
2022-10-01 17:37:12 +00:00
|
|
|
|
|
|
|
WORKDIR /ui
|
|
|
|
|
|
|
|
COPY ui/ .
|
|
|
|
|
|
|
|
RUN npm install --network-timeout=100000 && \
|
|
|
|
npm run build
|
|
|
|
|
|
|
|
|
|
|
|
FROM golang:1-alpine AS build
|
|
|
|
|
|
|
|
RUN apk --no-cache add git go-bindata
|
|
|
|
|
|
|
|
COPY . /go/src/git.nemunai.re/nemunaire/reveil
|
|
|
|
COPY --from=nodebuild /ui/build /go/src/git.nemunai.re/nemunaire/reveil/ui/build
|
|
|
|
WORKDIR /go/src/git.nemunai.re/nemunaire/reveil
|
2024-06-18 16:08:26 +00:00
|
|
|
RUN go get -v && go generate -v && go build -tags pulse -ldflags="-s -w"
|
2022-10-01 17:37:12 +00:00
|
|
|
|
|
|
|
|
2024-05-22 19:22:45 +00:00
|
|
|
FROM alpine:3.20
|
2022-10-01 17:37:12 +00:00
|
|
|
|
2022-10-15 12:27:26 +00:00
|
|
|
VOLUME /data
|
|
|
|
WORKDIR /data
|
|
|
|
|
2022-10-01 17:37:12 +00:00
|
|
|
EXPOSE 8080
|
|
|
|
CMD ["/srv/reveil"]
|
|
|
|
|
|
|
|
COPY --from=build /go/src/git.nemunai.re/nemunaire/reveil/reveil /srv/reveil
|