Commit 3683f6cd authored by vicotor's avatar vicotor

add dockerfile

parent 082fa959
FROM golang:1.20-alpine AS build
# Install dependencies
RUN apk update && \
apk upgrade && \
apk add --no-cache bash git openssh make build-base
RUN go env -w CGO_ENABLED="1"
WORKDIR /build
RUN git clone https://code.wuban.net.cn/odysseus/scheduler && \
git clone https://code.wuban.net.cn/odysseus/odysseus-protocol && \
git clone https://code.wuban.net.cn/odysseus/payment
RUN cd /build/scheduler && make && cp build/bin/scheduler /scheduler
FROM alpine
WORKDIR /root
COPY --from=build /scheduler /usr/bin/scheduler
ENTRYPOINT [ "scheduler" ]
......@@ -7,6 +7,13 @@ addr="127.0.0.1:6379"
password="123456"
db=0
[mysql]
host="192.168.1.211"
port=3306
user="root"
password="12345678"
database="liuxuzhong"
[kafka]
#brokers="192.168.1.108:9092"
#brokers="192.168.1.220:9092"
......
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