git-hulk commented on code in PR #550:
URL: https://github.com/apache/incubator-kvrocks/pull/550#discussion_r863733425


##########
Dockerfile:
##########
@@ -15,16 +15,25 @@
 # specific language governing permissions and limitations
 # under the License.
 
-FROM ubuntu:18.04
+FROM ubuntu:22.04 as build
+
+RUN apt update && apt install -y make git autoconf libtool g++
+WORKDIR /kvrocks
+
+COPY . .
+RUN make -j4
+
+
+FROM ubuntu:22.04
 
 RUN apt update && apt install -y libsnappy-dev
 WORKDIR /kvrocks
 
 RUN mkdir /data
-COPY ./build/bin/kvrocks ./bin/
+COPY --from=build /kvrocks/src/kvrocks ./bin/
+
 COPY ./kvrocks.conf  ./conf/
 RUN sed  -i -e 's|dir /tmp/kvrocks|dir /var/lib/kvrocks|g' ./conf/kvrocks.conf
-VOLUME /var/lib/kvrocks

Review Comment:
   @foxdalas Maybe we should keep this volume, some users would like to volume 
the host configuration file into docker.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to