mirror of
https://github.com/dragonflydb/dragonfly.git
synced 2025-05-11 02:15:45 +02:00
chore: update our container distributions versions (#2983)
1. Restrict build context in our dev/weekly builder to ease development iterations. 2. Switch weekly build to debian 12-slim because it's smaller than 24.04 3. Update our prod releases to use ubuntu 22.04 Signed-off-by: Roman Gershman <roman@dragonflydb.io>
This commit is contained in:
parent
39c7cfdf72
commit
c37fe87bf1
2 changed files with 6 additions and 3 deletions
|
@ -3,7 +3,10 @@ FROM ghcr.io/romange/ubuntu-dev:20 as builder
|
||||||
|
|
||||||
WORKDIR /build
|
WORKDIR /build
|
||||||
|
|
||||||
COPY . ./
|
COPY ./Makefile ./CMakeLists.txt ./
|
||||||
|
COPY src ./src
|
||||||
|
COPY cmake ./cmake
|
||||||
|
COPY helio ./helio
|
||||||
|
|
||||||
RUN make release
|
RUN make release
|
||||||
|
|
||||||
|
@ -12,7 +15,7 @@ RUN build-release/dragonfly --version
|
||||||
RUN curl -O https://raw.githubusercontent.com/ncopa/su-exec/212b75144bbc06722fbd7661f651390dc47a43d1/su-exec.c && \
|
RUN curl -O https://raw.githubusercontent.com/ncopa/su-exec/212b75144bbc06722fbd7661f651390dc47a43d1/su-exec.c && \
|
||||||
gcc -Wall -O2 su-exec.c -o su-exec
|
gcc -Wall -O2 su-exec.c -o su-exec
|
||||||
|
|
||||||
FROM ubuntu:20.04
|
FROM debian:12-slim
|
||||||
|
|
||||||
RUN --mount=type=tmpfs,target=/var/cache/apt \
|
RUN --mount=type=tmpfs,target=/var/cache/apt \
|
||||||
--mount=type=tmpfs,target=/var/lib/apt/lists \
|
--mount=type=tmpfs,target=/var/lib/apt/lists \
|
||||||
|
|
|
@ -15,7 +15,7 @@ RUN curl -O https://raw.githubusercontent.com/ncopa/su-exec/212b75144bbc06722fbd
|
||||||
RUN /tmp/fetch_release.sh ${TARGETPLATFORM}
|
RUN /tmp/fetch_release.sh ${TARGETPLATFORM}
|
||||||
|
|
||||||
# Now prod image
|
# Now prod image
|
||||||
FROM ubuntu:20.04
|
FROM ubuntu:22.04
|
||||||
|
|
||||||
# ARG in fact change the env vars during the build process
|
# ARG in fact change the env vars during the build process
|
||||||
# ENV persist the env vars for the built image as well.
|
# ENV persist the env vars for the built image as well.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue