Browse Source

add docker setup

master
mach327 12 months ago
parent
commit
3990a40752
  1. 10
      Dockerfile
  2. 2
      Makefile
  3. 10
      docker-compose.yml

10
Dockerfile

@ -0,0 +1,10 @@
from archlinux
RUN pacman --noconfirm -Syyu base-devel git
workdir /app
ADD . /app
RUN make clean; make
volume /usr/local/etc/
EXPOSE 17000/udp
CMD /app/mrefd

2
Makefile

@ -59,7 +59,7 @@ clean :
-include $(DEPS)
install : $(EXE).blacklist $(EXE).whitelist $(EXE).interlink
install : config/$(EXE).blacklist config/$(EXE).whitelist config/$(EXE).interlink
ln -s $(shell pwd)/$(EXE).blacklist $(CFGDIR)/$(EXE).blacklist
ln -s $(shell pwd)/$(EXE).whitelist $(CFGDIR)/$(EXE).whitelist
ln -s $(shell pwd)/$(EXE).interlink $(CFGDIR)/$(EXE).interlink

10
docker-compose.yml

@ -0,0 +1,10 @@
version: '3'
services:
mrefd:
build:
context: .
restart: always
volumes:
- ./config/:/usr/local/etc/
ports:
- 17000:17000/udp
Loading…
Cancel
Save