The main server, and probably only repository in this org.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

20 lines
535 B

  1. FROM golang:1.11 as build-server
  2. WORKDIR /server
  3. COPY . .
  4. RUN go mod tidy
  5. ENV CGO_ENABLED 1
  6. RUN go build -ldflags "-w -s" ./cmd/lucifer-server/
  7. FROM node:10.15.1-alpine as build-ui
  8. WORKDIR /ui
  9. COPY ./webui /ui
  10. RUN npm install
  11. RUN npm run build
  12. FROM alpine:3.8
  13. RUN apk add --no-cache sqlite
  14. COPY /lib/libc.musl-x86_64.so.1 /lib64/ld-linux-x86-64.so.2
  15. RUN apk remove sqlite
  16. COPY --from=build-server /server/lucifer-server /usr/local/bin/
  17. COPY --from=build-ui /ui/build /usr/local/share/lucifer-ui
  18. CMD ["/usr/local/bin/lucifer-server"]