mirror of
https://github.com/OpenFusionProject/OpenFusion.git
synced 2024-11-22 05:20:05 +00:00
68b56e7c25
Additionally: * Add EXPOSE hints to Dockerfile * as -> AS in Dockerfile to resolve warning * Point docker-compose to our docker hub image * Remove version property in docker-compose.yml as it was deprecated
37 lines
607 B
Docker
37 lines
607 B
Docker
# build
|
|
FROM debian:stable-slim 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 nosandbox -j$(nproc)
|
|
|
|
# prod
|
|
FROM debian:stable-slim
|
|
|
|
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"]
|
|
|
|
EXPOSE 23000/tcp
|
|
EXPOSE 23001/tcp
|
|
EXPOSE 8001/tcp
|
|
|
|
LABEL Name=openfusion Version=1.6.0
|