From 6f79130858490745a79f622dff4cf08b80f3d2e6 Mon Sep 17 00:00:00 2001 From: PokoPoko2ry Date: Fri, 5 May 2023 18:55:00 +0900 Subject: [PATCH] add dockerfile and usage --- README | 7 +++++++ dockerfile | 6 ++++++ 2 files changed, 13 insertions(+) create mode 100644 dockerfile diff --git a/README b/README index 43f4753..09090aa 100644 --- a/README +++ b/README @@ -39,6 +39,13 @@ commands. The files are installed under "C:\Program Files\tkrzw". nmake -f VCMakefile check nmake -f VCMakefile install (run this as Administrator) +You can build a docker container with the following command. +Other tkrzw project's containers can build themselves containers based on this. + +``` +$ docker build -t tkrzw . +``` + Thanks. == END OF FILE == diff --git a/dockerfile b/dockerfile new file mode 100644 index 0000000..01cc0a9 --- /dev/null +++ b/dockerfile @@ -0,0 +1,6 @@ +FROM gcc:13.1.0 + +WORKDIR /usr/local/workspace/tkrzw +ADD ./ /usr/local/workspace/tkrzw/ + +RUN ./configure --enable-opt-native --enable-most-features && make && make install