forked from containerbuildsystem/cachito
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile-workers
41 lines (35 loc) · 1.15 KB
/
Dockerfile-workers
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
FROM registry.fedoraproject.org/fedora:36
LABEL maintainer="Red Hat"
WORKDIR /src
RUN dnf -y install \
--setopt=deltarpm=0 \
--setopt=install_weak_deps=false \
--setopt=tsflags=nodocs \
golang \
gcc \
git-core \
krb5-devel \
libffi-devel \
mercurial \
npm \
procps \
python3-devel \
python3-pip \
python3-setuptools \
strace \
&& dnf clean all
COPY . .
# All the requirements except pyarn should already be installed
RUN pip3 install -r requirements.txt --no-deps --no-cache-dir --require-hashes \
&& pip3 install . --no-deps --no-cache-dir
# Use the system CA bundle for the requests library
ENV REQUESTS_CA_BUNDLE=/etc/pki/ca-trust/extracted/pem/directory-hash/ca-bundle.crt
# Use the system CA bundle for native SSL calls from celery (python)
ENV SSL_CERT_FILE=/etc/pki/ca-trust/extracted/pem/directory-hash/ca-bundle.crt
# Set git user configuration for GitPython
ENV GIT_COMMITTER_NAME=cachito \
GIT_COMMITTER_EMAIL=cachito@localhost \
GIT_AUTHOR_NAME=cachito \
GIT_AUTHOR_EMAIL=cachito@localhost
EXPOSE 8080
CMD ["celery", "-A", "cachito.workers.tasks", "worker", "--loglevel=info"]