diff options
author | lovetox <philipp@hoerist.com> | 2021-11-07 10:05:06 +0300 |
---|---|---|
committer | lovetox <philipp@hoerist.com> | 2021-11-07 10:05:06 +0300 |
commit | a216b54aed82e84ebfd3bb6a8f5c0fe7ab160e54 (patch) | |
tree | fad595c0d6ec98f5ce879c37921ac23b2b0a2cf1 /docker | |
parent | b2f17ad66962d4404e260acca815d3c385aa9341 (diff) |
Add docker files
Diffstat (limited to 'docker')
-rw-r--r-- | docker/Dockerfile | 23 | ||||
-rw-r--r-- | docker/requirements.txt | 12 |
2 files changed, 35 insertions, 0 deletions
diff --git a/docker/Dockerfile b/docker/Dockerfile new file mode 100644 index 000000000..bc73d23c7 --- /dev/null +++ b/docker/Dockerfile @@ -0,0 +1,23 @@ +FROM python:3.9 + +ARG DEBIAN_FRONTEND=noninteractive + +RUN apt-get update +RUN apt-get install -y apt-utils +RUN apt-get install -y appstream-util +RUN apt-get install -y libgirepository1.0-dev +RUN apt-get install -y gir1.2-gtk-3.0 +RUN apt-get install -y gir1.2-soup-2.4 +RUN apt-get install -y gettext + +RUN adduser --disabled-password worker +WORKDIR /home/worker +ENV PATH="/home/worker/.local/bin:${PATH}" +USER worker + +RUN pip install --upgrade pip + +COPY --chown=worker:worker requirements.txt requirements.txt +RUN pip install --no-cache-dir --user -r requirements.txt + +CMD bash diff --git a/docker/requirements.txt b/docker/requirements.txt new file mode 100644 index 000000000..83da18040 --- /dev/null +++ b/docker/requirements.txt @@ -0,0 +1,12 @@ +PyGObject +mypy +pylint +codespell +coverage +css-parser +keyring +packaging +precis-i18n +pyOpenSSL +types-pkg_resources +requests
\ No newline at end of file |