Skip to content

Commit

Permalink
use local files
Browse files Browse the repository at this point in the history
  • Loading branch information
hggq committed Apr 12, 2024
1 parent 826dcf9 commit b7b6f29
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions frameworks/C++/paozhu/paozhu.dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,28 +13,25 @@ ENV LANGUAGE en_US:en
ENV LC_ALL en_US.UTF-8

COPY ./ ./
RUN ls -l
WORKDIR /

# RUN wget https://github.com/hggq/paozhu/releases/download/v1.5.8/benchmark.zip
RUN git clone https://github.com/hggq/paozhu
# RUN unzip benchmark.zip
RUN ls -l
# RUN mv ./benchmark/* ./
RUN rm -Rf ./paozhu/controller
RUN copy ./paozhu_benchmark/controller ./paozhu/
RUN copy ./paozhu_benchmark/common ./paozhu/

COPY ./paozhu_benchmark/conf/server.conf ./paozhu/conf/server.conf
COPY ./paozhu_benchmark/conf/orm.conf ./paozhu/conf/orm.conf
COPY ./paozhu_benchmark/CMakeLists.txt ./paozhu/CMakeLists.txt

WORKDIR /paozhu
RUN unzip asio.zip
run cat ./conf/server.conf
run cat ./conf/orm.conf

RUN cmake . -B build -DCMAKE_BUILD_TYPE=Release
RUN cmake --build build

RUN cmake . -B build -DCMAKE_BUILD_TYPE=Release
RUN cmake --build build

EXPOSE 8888

Expand Down

0 comments on commit b7b6f29

Please sign in to comment.