forked from canonical/testflinger
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
35 lines (29 loc) · 780 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
32
33
34
35
FROM ubuntu:22.04
ENV DEBIAN_FRONTEND noninteractive
ENV HOME /root
ENV LC_ALL C.UTF-8
ENV LANG en_US.UTF-8
ENV LANGUAGE en_US.UTF-8
ENV PATH /srv/testflinger:$PATH
# Enable this if you prefer to use testflinger.conf
# ENV TESTFLINGER_CONFIG=/srv/testflinger/testflinger.conf
# Install dependencies
RUN apt-get update \
&& apt-get install -y \
--no-install-recommends \
curl \
git \
procps \
wget \
python3 \
python3-dev \
python3-pip
RUN apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
RUN mkdir -p /var/log/testflinger \
&& chmod 755 /var/log/testflinger
# clone src in volume dir
WORKDIR /srv/testflinger
COPY . /srv/testflinger
# Install testflinger
RUN pip3 install -I /srv/testflinger
CMD gunicorn --bind 0.0.0.0:5000 testflinger:app