Compare commits

..

7 Commits

2 changed files with 20 additions and 4 deletions

View File

@ -1,10 +1,13 @@
FROM alpine:3.20.0
FROM alpine:3.22.0 AS builder
RUN apk add --no-cache \
make=4.4.1-r2 \
g++=13.2.1_git20240309-r0 \
libstdc++=14.2.0-r6 \
&& adduser --disabled-password saundersp
RUN apk add --no-cache \
make=4.4.1-r3 \
g++=14.2.0-r6
USER saundersp
WORKDIR /home/saundersp/sorting_algorithms
@ -13,4 +16,16 @@ COPY *.cpp *.hpp Makefile ./
RUN make -j "$(nproc)"
ENTRYPOINT ["bin/data"]
FROM alpine:3.22.0
RUN apk add --no-cache \
libstdc++=14.2.0-r6 \
&& adduser --disabled-password saundersp
USER saundersp
WORKDIR /home/saundersp/sorting_algorithms
COPY --from=builder /home/saundersp/sorting_algorithms/bin/data .
ENTRYPOINT ["./data"]

View File

@ -1,4 +1,5 @@
services:
sorting_algorithms:
image: saundersp/sorting_algorithms
pull_policy: never
build: .