A web panel for Joker's Go DNS server, written using Vue.js
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.

25 lines
593 B

FROM golang:alpine AS build-env
ADD . /src
RUN apk add --no-cache gcc git musl-dev
RUN cd /src && go build -o joker-bin
FROM node:alpine AS static-env
ADD . /app
RUN npm config set unsafe-perm true
RUN npm install -g @vue/cli && cd /app/joker && npm install && npm run build
FROM alpine:3.7
MAINTAINER Tyler Stuyfzand <tyler@tystuyfzand.com>
RUN apk --no-cache add tini
ENTRYPOINT ["/sbin/tini", "-g", "--"]
CMD ["joker"]
COPY --from=build-env /src/joker-bin /usr/local/bin/joker
COPY --from=static-env /app/joker/dist /var/lib/joker/dist
RUN chmod +x /usr/local/bin/joker