Skip to content

Commit

Permalink
Update Dockerfile (#2)
Browse files Browse the repository at this point in the history
  • Loading branch information
manhinhang authored Jan 3, 2024
1 parent 80bbec0 commit e7286cd
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,31 +9,31 @@ FROM base-ubuntu as build-ubuntu
ARG FUTU_OPEND_VER=7.1.3308

WORKDIR /tmp
ADD https://softwarefile.futunn.com/FutuOpenD_${FUTU_OPEND_VER}_NN_Ubuntu16.04.tar.gz ./
RUN tar -xzf FutuOpenD_${FUTU_OPEND_VER}_NN_Ubuntu16.04.tar.gz \
&& rm FutuOpenD_${FUTU_OPEND_VER}_NN_Ubuntu16.04.tar.gz
ADD https://softwaredownload.futunn.com/Futu_OpenD_${FUTU_OPEND_VER}_Ubuntu16.04.tar.gz ./
RUN tar -xzf Futu_OpenD_${FUTU_OPEND_VER}_Ubuntu16.04.tar.gz \
&& rm Futu_OpenD_${FUTU_OPEND_VER}_Ubuntu16.04.tar.gz

FROM base-centos as build-centos
ARG FUTU_OPEND_VER=7.1.3308

WORKDIR /tmp
ADD https://softwarefile.futunn.com/FutuOpenD_${FUTU_OPEND_VER}_NN_Centos7.tar.gz ./
RUN tar -xzf FutuOpenD_${FUTU_OPEND_VER}_NN_Centos7.tar.gz \
&& rm FutuOpenD_${FUTU_OPEND_VER}_NN_Centos7.tar.gz
ADD https://softwaredownload.futunn.com/Futu_OpenD_${FUTU_OPEND_VER}_Centos7.tar.gz ./
RUN tar -xzf Futu_OpenD_${FUTU_OPEND_VER}_Centos7.tar.gz \
&& rm Futu_OpenD_${FUTU_OPEND_VER}_Centos7.tar.gz

FROM base-ubuntu AS final-ubuntu
ARG FUTU_OPEND_VER=7.1.3308

CMD ["/bin/FutuOpenD"]

COPY --from=build-ubuntu /tmp/FutuOpenD_${FUTU_OPEND_VER}_NN_Ubuntu16.04/FutuOpenD_${FUTU_OPEND_VER}_NN_Ubuntu16.04 /bin
COPY --from=build-ubuntu /tmp/Futu_OpenD_${FUTU_OPEND_VER}_Ubuntu16.04/Futu_OpenD_${FUTU_OPEND_VER}_Ubuntu16.04 /bin

FROM base-centos AS final-centos
ARG FUTU_OPEND_VER=7.1.3308

CMD ["/bin/FutuOpenD"]

COPY --from=build-centos /tmp/FutuOpenD_${FUTU_OPEND_VER}_NN_Centos7/FutuOpenD_${FUTU_OPEND_VER}_NN_Centos7 /bin
COPY --from=build-centos /tmp/Futu_OpenD_${FUTU_OPEND_VER}_Centos7/Futu_OpenD_${FUTU_OPEND_VER}_Centos7 /bin


FROM final-${BASE_IMG} AS final
Expand Down

0 comments on commit e7286cd

Please sign in to comment.