mirror of
https://github.com/OpenFusionProject/OpenFusion.git
synced 2024-12-22 19:30:05 +00:00
33 lines
525 B
Docker
33 lines
525 B
Docker
# build
|
|
FROM debian:latest as build
|
|
|
|
WORKDIR /usr/src/app
|
|
|
|
RUN apt-get -y update && apt-get install -y \
|
|
git \
|
|
clang \
|
|
make \
|
|
libsqlite3-dev
|
|
|
|
COPY src ./src
|
|
COPY vendor ./vendor
|
|
COPY .git ./.git
|
|
COPY Makefile CMakeLists.txt version.h.in ./
|
|
|
|
RUN make -j8
|
|
|
|
# prod
|
|
FROM debian:latest
|
|
|
|
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
|
|
|
|
CMD ["/bin/fusion"]
|
|
|
|
LABEL Name=openfusion Version=0.0.2
|