Commit 50317747 authored by vicotor's avatar vicotor

add Dockerfile

parent 21f219c1
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/nodemanager && \
git clone https://code.wuban.net.cn/odysseus/odysseus-protocol && \
git clone https://code.wuban.net.cn/odysseus/payment
RUN cd /build/nodemanager && make && cp build/bin/manager /manager
FROM alpine
WORKDIR /root
COPY --from=build /manager /usr/bin/manager
ENTRYPOINT [ "manager" ]
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