reveil/Dockerfile

30 lines
602 B
Docker
Raw Normal View History

2024-10-29 00:42:39 +00:00
FROM node:22-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
RUN go get -v && go generate -v && go build -tags pulse -ldflags="-s -w"
2022-10-01 17:37:12 +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