-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile
44 lines (31 loc) · 1.09 KB
/
Dockerfile
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
42
43
44
FROM quay.io/fedora/fedora:37
ENV NAME=betka-fedora \
RELEASE=0.9.6 \
ARCH=x86_64 \
SUMMARY="Syncs changes from upstream repository to downstream" \
DESCRIPTION="Syncs changes from upstream repository to downstream" \
HOME="/home/betka" \
SITE_PACKAGES=/usr/local/lib/python3.11/site-packages/betka
LABEL summary="$SUMMARY" \
description="$DESCRIPTION" \
io.k8s.description="$SUMMARY" \
io.k8s.display-name="$NAME" \
com.redhat.component="$NAME" \
name="quay.io/rhscl/betka" \
release="$RELEASE.$DISTTAG" \
architecture="$ARCH" \
usage="docker run -e REPO_URL=<url> quay.io/rhscl/betka" \
maintainer="Petr Hracek <phracek@redhat.com>"
ENV LANG=en_US.UTF-8
RUN mkdir --mode=775 /var/log/bots
COPY requirements.sh requirements.txt /tmp/betka-bot/
RUN cd /tmp/betka-bot && bash requirements.sh && pip3 install -r requirements.txt
WORKDIR ${HOME}
COPY ./files/bin /bin
COPY ./files/home ${HOME}/
COPY ./config.json ${HOME}/
# Install betka
COPY ./ /tmp/betka-bot
RUN cd /tmp/betka-bot && pip3 install .
USER 1000
CMD ["/bin/run.sh"]