mirror of
https://github.com/joyieldInc/predixy.git
synced 2025-12-24 22:46:41 +08:00
add Dockerfile
Signed-off-by: duyanghao <1294057873@qq.com>
This commit is contained in:
parent
dacf3fb30c
commit
3e45fd4cbe
16
Dockerfile
Normal file
16
Dockerfile
Normal file
@ -0,0 +1,16 @@
|
||||
FROM ubuntu:18.04 as binary
|
||||
RUN apt-get update \
|
||||
&& apt-get install -y build-essential \
|
||||
&& apt-get clean
|
||||
|
||||
ADD . /predixy
|
||||
WORKDIR /predixy
|
||||
|
||||
RUN make
|
||||
|
||||
FROM frolvlad/alpine-glibc:alpine-3.9_glibc-2.29
|
||||
|
||||
COPY --from=binary /predixy/src/predixy /usr/local/bin
|
||||
COPY conf /predixy/conf
|
||||
|
||||
ENTRYPOINT ["/usr/local/bin/predixy", "/predixy/conf/predixy.conf"]
|
||||
Loading…
Reference in New Issue
Block a user