Docker image containing dependencies required for libcurl development.
The docker image is hosted at docker hub here:
jamesfuller/libcurl-dev-dependencies-linux
The following dockerfile illustrates how to create an image with your own fork of https://github.com/curl/curl
FROM jamesfuller/libcurl-dev-dependencies-linux
ENV CURL_SOURCE_DIR=/src/curl
ENV CURL_GIT_REPO=https://github.com/<your github >/curl.git
RUN mkdir -p ${CURL_SOURCE_DIR}
RUN chmod -R 777 ${CURL_SOURCE_DIR}
RUN chown -R root:root ${CURL_SOURCE_DIR}
RUN git clone ${CURL_GIT_REPO} ${CURL_SOURCE_DIR}
RUN apt-get install -y openssh-server
RUN mkdir -p /root/.ssh && chown root.root /root && chmod 700 /root/.ssh
RUN cd /src/curl && ./buildconf
CMD ["/bin/bash"]
The image is intentionally simple eg. you may want to mount a volume instead of embed git repo inside the image itself.
Note: nix images are experimental (and likely to not work)