Browse Source

fix path error in docker file (#5401)

* Create README.md

* Create benchmark_config.json

* Update README.md

* Create cinatra.dockerfile

* Create CMakeLists.txt

* Create main.cpp

* Update cinatra.dockerfile

* Update CMakeLists.txt

* Update README.md

* Update README.md

* Update cinatra.dockerfile

* Update README.md

* Update cinatra.dockerfile

* fix path error in docker file

This cause start failed
qicosmos 5 years ago
parent
commit
f646d5d2c8
1 changed files with 11 additions and 18 deletions
  1. 11 18
      frameworks/C++/cinatra/cinatra.dockerfile

+ 11 - 18
frameworks/C++/cinatra/cinatra.dockerfile

@@ -1,29 +1,22 @@
 FROM ubuntu:18.04
 FROM ubuntu:18.04
-
 RUN apt-get update -yqq && \
 RUN apt-get update -yqq && \
-	apt-get install -yqq cmake git uuid-dev gcc g++ autoconf
-
-ENV IASIO=/asio/asio
-ENV CINATRA_HOME=/cinatra
-ENV CINATRA=/cinatra/example
-
+apt-get install -yqq cmake git uuid-dev gcc g++ autoconf
+ENV ASIO=/asio
+ENV ASIO_INTERNAL=/asio/asio
+ENV CINATRA=/cinatra
+ENV CINATRA_EXAMPLE=/cinatra/example
+WORKDIR /
 RUN git clone https://github.com/chriskohlhoff/asio.git
 RUN git clone https://github.com/chriskohlhoff/asio.git
+WORKDIR $ASIO
 RUN git checkout 8087252a0c3c2f0baad96ddbd6554db17a846376
 RUN git checkout 8087252a0c3c2f0baad96ddbd6554db17a846376
-
-WORKDIR $IASIO
-
+WORKDIR $ASIO_INTERNAL
 RUN ./autogen.sh && ./configure
 RUN ./autogen.sh && ./configure
-RUN make -j && make install
-
+RUN make && make install
 WORKDIR /
 WORKDIR /
-
 RUN git clone https://github.com/qicosmos/cinatra.git
 RUN git clone https://github.com/qicosmos/cinatra.git
-RUN git checkout 9f12b7ddef1b919167348d49b79162f3c46d7fef
-
 WORKDIR $CINATRA
 WORKDIR $CINATRA
-
+RUN git checkout 9f12b7ddef1b919167348d49b79162f3c46d7fef
+WORKDIR $CINATRA_EXAMPLE
 RUN mkdir build && cd build && cmake .. && make
 RUN mkdir build && cd build && cmake .. && make
-
 EXPOSE 8090
 EXPOSE 8090
-
 CMD ./build/cinatra_example
 CMD ./build/cinatra_example