-
Notifications
You must be signed in to change notification settings - Fork 5
/
Dockerfile
31 lines (22 loc) · 922 Bytes
/
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
FROM registry.fedoraproject.org/fedora:39
LABEL maintainer="Factory 2 Team" \
description="A microservice triggered by specific message to tag a build." \
version="latest"
# This is an argument for a URL to a DNF repo file of a repo that contains
# python3-rhmsg.
# This argument could be omitted when build image for Fedora.
ARG rcm_tools_repo_file
RUN sed -i '/default_ccache_name = KEYRING:persistent:%{uid}/d' /etc/krb5.conf
RUN chmod 777 /etc/pki/tls/certs/ca-bundle.crt
WORKDIR /src
# This will allow a non-root user to install a custom root CA at run-time
COPY . .
RUN docker/install-dependencies.sh $rcm_tools_repo_file
RUN sed -i '/^koji==/,/--hash=\S*$/d' requirements.txt
RUN sed -i '/^koji==.*$/d' requirements-no-hashes.txt
RUN python3 -m pip install --no-deps .
# Mount to a directory holding the MTS config file
VOLUME /etc/mts
USER 1001
EXPOSE 8080
ENTRYPOINT ["docker/entrypoint.sh"]