Commit 3a1cd1a5 authored by Wes Cilldhaire's avatar Wes Cilldhaire 💻
Browse files

Initial dockerization of meerkat

parent 5d2544a3
FROM golang:alpine
WORKDIR /go/src/meerkat
COPY . .
RUN go build
FROM node:lts
WORKDIR /root
COPY --from=0 /go/src/meerkat .
WORKDIR frontend
RUN npm install
RUN npm run prod
FROM alpine:latest
WORKDIR /meerkat
COPY --from=0 /go/src/meerkat .
COPY --from=1 /root/frontend frontend
VOLUME /meerkat/config
VOLUME /meerkat/dashboards
VOLUME /meerkat/dashboards-data
CMD ["/meerkat/meerkat", "-config", "/meerkat/config/meerkat.toml"]
version: '3.3'
services:
meerkat:
image: hub.sol1.net/meerkat:latest
container_name: meerkat
volumes:
- ./config:/meerkat/config
- ./dashboards:/meerkat/dashboards
- ./dashboards-data:/meerkat/dashboards-data
ports:
- 8585:8585
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment