created dockerfile for base scripts

created ssh based dockerfile
created dockerignore file
fixed tinkoff grpc and added acrhor to tag
created requirements.txt for docker pip system
This commit is contained in:
2022-12-13 13:19:41 +02:00
parent d50defbe3e
commit ecd42cc0b8
5 changed files with 912 additions and 262 deletions

14
Dockerfile Normal file
View File

@@ -0,0 +1,14 @@
# 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