1
0
mirror of https://github.com/fumiama/CMoe-Counter.git synced 2026-06-20 10:50:29 +08:00

优化代码结构, add c302

This commit is contained in:
源文雨
2022-11-23 14:39:37 +08:00
parent 1cf8e06d65
commit 40a60f1aeb
2 changed files with 143 additions and 110 deletions

View File

@@ -22,6 +22,15 @@ RUN git clone --depth=1 https://github.com/fumiama/simple-http-server.git \
RUN rm -rf *
RUN git clone --depth=1 https://github.com/fumiama/C302.git \
&& cd C302 \
&& mkdir build \
&& cd build \
&& cmake .. \
&& make install
RUN rm -rf *
COPY ./*.c .
COPY ./*.h .
COPY ./CMakeLists.txt .
@@ -35,13 +44,15 @@ FROM alpine:latest
COPY --from=builder /usr/local/bin/simple-http-server /usr/bin/simple-http-server
COPY --from=builder /usr/local/bin/cmoe /data/cmoe
COPY --from=builder /usr/local/bin/c302 /data/c302
COPY --from=builder /usr/local/lib/libspb.so /usr/local/lib/libspb.so
RUN chmod +x /usr/bin/simple-http-server
RUN chmod +x /data/cmoe
RUN chmod +x /data/c302
WORKDIR /data
COPY ./assets/favicon.ico .
COPY ./assets/index.html .
COPY ./assets/style.css .
ENTRYPOINT [ "/usr/bin/simple-http-server" ]
ENTRYPOINT [ "/usr/bin/simple-http-server" ]