forked from containerbuildsystem/cachito
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile-workers
37 lines (34 loc) · 1019 Bytes
/
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
FROM registry.fedoraproject.org/fedora:33
LABEL maintainer="Factory 2.0"
WORKDIR /src
RUN dnf -y install \
--setopt=deltarpm=0 \
--setopt=install_weak_deps=false \
--setopt=tsflags=nodocs \
gettext \
git-core \
golang \
mercurial \
npm \
nss_wrapper \
python3-celery \
python3-GitPython \
python3-packaging \
python3-pip \
python3-requests \
python3-requests-kerberos \
python3-semver \
python3-setuptools \
&& dnf clean all
COPY . .
# All the requirements except pyarn should already be installed
RUN pip3 install "pyarn @ git+https://github.com/containerbuildsystem/pyarn.git" && \
pip3 install . --no-deps
# 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
ENTRYPOINT ["/src/docker/docker-entrypoint.sh"]
CMD ["/bin/celery-3", "-A", "cachito.workers.tasks", "worker", "--loglevel=info"]