sorting_algorithms/Dockerfile

23 lines
321 B
Docker

FROM alpine:3.19.1
RUN apk add make g++
WORKDIR /home/saundersp/sorting_algorithms
RUN adduser \
--disabled-password \
--gecos '' \
--home "$(pwd)" \
--no-create-home \
saundersp
COPY . .
RUN chown -R saundersp /home/saundersp/sorting_algorithms
USER saundersp
RUN make -j "$(nproc)"
ENTRYPOINT ["bin/data"]