forked from AttorneyOnline/akashi
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
33 lines (26 loc) · 794 Bytes
/
Dockerfile
File metadata and controls
33 lines (26 loc) · 794 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
###
### Build
###
FROM ubuntu:noble@sha256:9cbed754112939e914291337b5e554b07ad7c392491dba6daf25eef1332a22e8
# Install build dependencies
RUN apt-get update && apt-get install build-essential qtbase5-dev qt5-qmake qttools5-dev qttools5-dev-tools libqt5websockets5-dev -y
# Copy files into image
RUN mkdir /build
COPY . /build
# Build akashi
WORKDIR /build
RUN qmake project-akashi.pro && make -j$(nproc)
###
### Run
###
FROM ubuntu:noble@sha256:9cbed754112939e914291337b5e554b07ad7c392491dba6daf25eef1332a22e8
# Install runtime dependencies
RUN apt-get update && apt-get install libqt5websockets5-dev -y
# Copy built assets
RUN mkdir /app
COPY --from=0 /build/bin /app
COPY ./docker-entrypoint.sh /app
# Run akashi
WORKDIR /app
ENTRYPOINT [ "bash" ]
CMD ["-c", "./docker-entrypoint.sh"]