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.
22 lines
607 B
22 lines
607 B
FROM golang:1.11 as build-server
|
|
WORKDIR /server
|
|
COPY . .
|
|
RUN go mod tidy
|
|
ENV CGO_ENABLED 1
|
|
RUN go build -ldflags "-w -s" ./cmd/lucifer-server/
|
|
|
|
FROM node:10.15.1-alpine as build-ui
|
|
WORKDIR /ui
|
|
COPY ./webui /ui
|
|
RUN npm install
|
|
RUN npm run build
|
|
|
|
FROM alpine:3.8 as install-musl
|
|
RUN apk add --no-cache sqlite
|
|
|
|
FROM alpine:3.8
|
|
COPY --from=install-musl /lib/libc.musl-x86_64.so.1 /lib64/ld-linux-x86-64.so.2
|
|
COPY --from=build-server /server/lucifer-server /usr/local/bin/
|
|
COPY --from=build-ui /ui/build /usr/local/share/lucifer-ui
|
|
|
|
CMD ["/usr/local/bin/lucifer-server", "-uidir", "/usr/local/share/lucifer-ui"]
|