# syntax=docker/dockerfile:1 FROM python:3.10-alpine # installing necessary software -- openssh for support of private repositories, connected through ssh, # git for git based VCS for such software, gcc g++ and musl-dev for building necessary dependencies, which are not # available as binaries RUN apk add --update-cache openssh-client git gcc g++ musl-dev libpq # getting github ssh keys, to be ready to download private repos from there RUN mkdir --parents --mode 0700 ~/.ssh && ssh-keyscan github.com >> ~/.ssh/known_hosts # copying and installing requirements COPY requirements.txt . RUN --mount=type=ssh pip install -r requirements.txt