Dockerfile 说明
目的
格式示例
ARG BaseImage
ARG ServerType
ARG BIN
FROM ${BaseImage}
ENV ServerType=${ServerType}
RUN mkdir -p /usr/local/server/bin/
COPY $BIN /usr/local/server/bin/Last updated
Was this helpful?
ARG BaseImage
ARG ServerType
ARG BIN
FROM ${BaseImage}
ENV ServerType=${ServerType}
RUN mkdir -p /usr/local/server/bin/
COPY $BIN /usr/local/server/bin/Last updated
Was this helpful?
Was this helpful?
docker build . -t xxx/notifyproxyserver --build-arg BIN=build/bin/NotifyProxyServer --build-arg BaseImage=tarscloud/tars.cppbase --build-arg ServerType=cpp
docker push xxx/notifyproxyserver