mirror of https://github.com/dirtbags/tanks.git
Holy smokes, a working docker image
This commit is contained in:
parent
55efb13cd4
commit
e7324c30f5
|
@ -1,9 +1,9 @@
|
|||
FROM alpine AS builder
|
||||
|
||||
RUN apk --no-cache add build-base
|
||||
RUN apk --no-cache add build-base m4 markdown
|
||||
COPY . /src
|
||||
RUN make -C /src DESTDIR=/tanks install
|
||||
|
||||
FROM neale/eris
|
||||
COPY builder:/opt/tanks /tanks
|
||||
CMD [ "/opt/tanks/go.sh" ]
|
||||
COPY --from=builder /tanks /tanks
|
||||
CMD [ "/tanks/bin/go.sh" ]
|
||||
|
|
4
Makefile
4
Makefile
|
@ -19,8 +19,8 @@ install: $(BINARIES) $(HTML)
|
|||
|
||||
install -d $(DESTDIR)/www
|
||||
install upload.cgi $(DESTDIR)/www
|
||||
install --mode=0644 $(HTML) $(DESTDIR)/www
|
||||
install --mode=0644 $(WWW) $(DESTDIR)/www
|
||||
install -m 0644 $(HTML) $(DESTDIR)/www
|
||||
install -m 0644 $(WWW) $(DESTDIR)/www
|
||||
|
||||
install -d $(DESTDIR)/examples
|
||||
cp -r examples $(DESTDIR)/examples
|
||||
|
|
Loading…
Reference in New Issue