mirror of
https://github.com/OpenFusionProject/OpenFusion.git
synced 2024-11-23 05:40:08 +00:00
Docker: disable sandbox to fix crashes and update Dockerfile/compose.yml (#294)
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
This commit is contained in:
parent
cada1bcfd8
commit
68b56e7c25
10
Dockerfile
10
Dockerfile
@ -1,5 +1,5 @@
|
||||
# build
|
||||
FROM debian:stable-slim as build
|
||||
FROM debian:stable-slim AS build
|
||||
|
||||
WORKDIR /usr/src/app
|
||||
|
||||
@ -14,7 +14,7 @@ COPY vendor ./vendor
|
||||
COPY .git ./.git
|
||||
COPY Makefile CMakeLists.txt version.h.in ./
|
||||
|
||||
RUN make -j8
|
||||
RUN make nosandbox -j$(nproc)
|
||||
|
||||
# prod
|
||||
FROM debian:stable-slim
|
||||
@ -29,4 +29,8 @@ COPY sql ./sql
|
||||
|
||||
CMD ["/bin/fusion"]
|
||||
|
||||
LABEL Name=openfusion Version=0.0.2
|
||||
EXPOSE 23000/tcp
|
||||
EXPOSE 23001/tcp
|
||||
EXPOSE 8001/tcp
|
||||
|
||||
LABEL Name=openfusion Version=1.6.0
|
||||
|
@ -1,11 +1,9 @@
|
||||
version: '3.4'
|
||||
|
||||
services:
|
||||
openfusion:
|
||||
image: openfusion
|
||||
build:
|
||||
context: .
|
||||
dockerfile: ./Dockerfile
|
||||
image: openfusion/openfusion:latest
|
||||
volumes:
|
||||
- ./config.ini:/usr/src/app/config.ini
|
||||
- ./database.db:/usr/src/app/database.db
|
||||
|
Loading…
Reference in New Issue
Block a user