mirror of
https://github.com/EndPositive/slipstream.git
synced 2025-10-08 12:25:04 +00:00
Add docker based development container and add apt cache
This commit is contained in:
parent
880f6a55b3
commit
1534258390
1 changed files with 19 additions and 4 deletions
23
Dockerfile
23
Dockerfile
|
|
@ -1,9 +1,19 @@
|
|||
FROM debian:bookworm-slim AS builder
|
||||
FROM debian:bookworm-slim AS development
|
||||
|
||||
WORKDIR /usr/src/app
|
||||
|
||||
# apt update without cache and install build-essential and cmake
|
||||
RUN apt-get update && apt-get install -y build-essential cmake git pkg-config libssl-dev
|
||||
RUN --mount=type=cache,target=/var/cache/apt,sharing=locked \
|
||||
--mount=type=cache,target=/var/lib/apt,sharing=locked \
|
||||
apt-get update && apt-get install -y \
|
||||
build-essential \
|
||||
cmake \
|
||||
git \
|
||||
pkg-config \
|
||||
libssl-dev \
|
||||
ninja-build \
|
||||
gdb-multiarch
|
||||
|
||||
FROM development AS builder
|
||||
|
||||
COPY . .
|
||||
|
||||
|
|
@ -15,10 +25,15 @@ FROM debian:bookworm-slim
|
|||
|
||||
WORKDIR /usr/src/app
|
||||
|
||||
RUN apt-get update && apt-get install -y libssl3
|
||||
RUN --mount=type=cache,target=/var/cache/apt,sharing=locked \
|
||||
--mount=type=cache,target=/var/lib/apt,sharing=locked \
|
||||
apt-get update && apt-get install -y \
|
||||
libssl3
|
||||
|
||||
COPY ./certs/ ./certs/
|
||||
|
||||
RUN mkdir -p ./qlog/
|
||||
|
||||
COPY --from=builder /usr/src/app/slipstream .
|
||||
|
||||
ENTRYPOINT ["/usr/src/app/slipstream"]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue