mirror of
https://github.com/OpenFusionProject/OpenFusion.git
synced 2024-11-22 13:30:06 +00:00
Compare commits
No commits in common. "233d21ecd7c62c75c8119bb36ad712c6688c3f65" and "fa8c1e73d124d94eaeff3864fe365f62e7236d21" have entirely different histories.
233d21ecd7
...
fa8c1e73d1
1
.dockerignore
Normal file
1
.dockerignore
Normal file
@ -0,0 +1 @@
|
||||
version.h
|
25
Dockerfile
25
Dockerfile
@ -1,5 +1,4 @@
|
||||
# build
|
||||
FROM debian:latest as build
|
||||
FROM debian:latest
|
||||
|
||||
WORKDIR /usr/src/app
|
||||
|
||||
@ -9,24 +8,14 @@ clang \
|
||||
make \
|
||||
libsqlite3-dev
|
||||
|
||||
COPY src ./src
|
||||
COPY vendor ./vendor
|
||||
COPY .git ./.git
|
||||
COPY Makefile CMakeLists.txt version.h.in ./
|
||||
COPY . ./
|
||||
|
||||
RUN make -j8
|
||||
|
||||
# prod
|
||||
FROM debian:latest
|
||||
# tabledata should be copied from the host;
|
||||
# clone it there before building the container
|
||||
#RUN git submodule update --init --recursive
|
||||
|
||||
WORKDIR /usr/src/app
|
||||
CMD ["./bin/fusion"]
|
||||
|
||||
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
|
||||
LABEL Name=openfusion Version=0.0.1
|
||||
|
@ -6,10 +6,6 @@ services:
|
||||
build:
|
||||
context: .
|
||||
dockerfile: ./Dockerfile
|
||||
volumes:
|
||||
- ./config.ini:/usr/src/app/config.ini
|
||||
- ./database.db:/usr/src/app/database.db
|
||||
- ./tdata:/usr/src/app/tdata
|
||||
ports:
|
||||
- "23000:23000"
|
||||
- "23001:23001"
|
||||
|
Loading…
Reference in New Issue
Block a user