OpenFusion/Dockerfile

33 lines
535 B
Docker
Raw Normal View History

2024-05-08 03:11:14 +00:00
# build
FROM debian:stable-slim as build
2023-06-23 01:46:24 +00:00
WORKDIR /usr/src/app
RUN apt-get -y update && apt-get install -y \
git \
clang \
make \
libsqlite3-dev
2024-05-08 03:11:14 +00:00
COPY src ./src
COPY vendor ./vendor
COPY .git ./.git
COPY Makefile CMakeLists.txt version.h.in ./
2023-06-23 01:46:24 +00:00
RUN make -j8
2024-05-08 03:11:14 +00:00
# prod
FROM debian:stable-slim
2024-05-08 03:11:14 +00:00
WORKDIR /usr/src/app
RUN apt-get -y update && apt-get install -y \
libsqlite3-dev
COPY --from=build /usr/src/app/bin/fusion /bin/fusion
COPY sql ./sql
2023-06-23 01:46:24 +00:00
2024-05-08 03:11:14 +00:00
CMD ["/bin/fusion"]
2023-06-23 01:46:24 +00:00
2024-05-08 03:11:14 +00:00
LABEL Name=openfusion Version=0.0.2