23 lines
319 B
Docker
23 lines
319 B
Docker
FROM alpine:3.19.0
|
|
|
|
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"]
|