Skip to content

Commit

Permalink
设置容器 VOLUME
Browse files Browse the repository at this point in the history
  • Loading branch information
lanthora committed Jan 25, 2024
1 parent ca11997 commit 9d036fe
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ COPY . candy
RUN cd candy/build && cmake -G Ninja -DCMAKE_BUILD_TYPE=Release .. && cmake --build . && cmake --install .

FROM base AS product
VOLUME /var/lib/candy
COPY --from=build /usr/local/bin/candy /usr/bin/candy
ENTRYPOINT ["/usr/bin/candy"]
CMD ["-m", "client", "-w", "wss://zone.icandy.one/demo", "-s", "stun://stun.qq.com"]

0 comments on commit 9d036fe

Please sign in to comment.