Compare commits

..

2 Commits

Author SHA1 Message Date
cd6aee2fae
Merge 37386b857a into 68b56e7c25 2024-10-15 19:53:35 +08:00
CakeLancelot
68b56e7c25
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
2024-10-15 01:00:37 -05:00
2 changed files with 8 additions and 6 deletions

View File

@ -1,5 +1,5 @@
# build # build
FROM debian:stable-slim as build FROM debian:stable-slim AS build
WORKDIR /usr/src/app WORKDIR /usr/src/app
@ -14,7 +14,7 @@ COPY vendor ./vendor
COPY .git ./.git COPY .git ./.git
COPY Makefile CMakeLists.txt version.h.in ./ COPY Makefile CMakeLists.txt version.h.in ./
RUN make -j8 RUN make nosandbox -j$(nproc)
# prod # prod
FROM debian:stable-slim FROM debian:stable-slim
@ -29,4 +29,8 @@ COPY sql ./sql
CMD ["/bin/fusion"] 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

View File

@ -1,11 +1,9 @@
version: '3.4'
services: services:
openfusion: openfusion:
image: openfusion
build: build:
context: . context: .
dockerfile: ./Dockerfile dockerfile: ./Dockerfile
image: openfusion/openfusion:latest
volumes: volumes:
- ./config.ini:/usr/src/app/config.ini - ./config.ini:/usr/src/app/config.ini
- ./database.db:/usr/src/app/database.db - ./database.db:/usr/src/app/database.db