/
Dockerfile
54 lines (43 loc) · 1.73 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
45
46
47
48
49
50
51
52
53
54
FROM ubuntu:22.04
LABEL maintainer="Mozilla Release Engineering <release+docker@mozilla.com>"
# Add worker user
RUN mkdir /builds && \
useradd -d /builds/worker -s /bin/bash -m worker && \
chown worker:worker /builds/worker && \
mkdir /builds/worker/artifacts && \
chown worker:worker /builds/worker/artifacts
WORKDIR /builds/worker/
#----------------------------------------------------------------------------------------------------------------------
#-- Configuration -----------------------------------------------------------------------------------------------------
#----------------------------------------------------------------------------------------------------------------------
ENV CURL='curl --location --retry 5' \
LANG='en_US.UTF-8' \
TERM='dumb'
RUN apt-get update -qq \
# We need to install tzdata before all of the other packages. Otherwise it will show an interactive dialog that
# we cannot navigate while building the Docker image.
&& apt-get install -y tzdata \
&& apt-get install -y python3 \
python3-pip \
python3-yaml \
locales \
git \
tmux \
htop \
vim \
nano \
ncurses-term \
zstd \
screen \
curl \
&& apt-get clean
RUN locale-gen "$LANG"
RUN pip install zstandard
# %include-run-task
ENV SHELL=/bin/bash \
HOME=/builds/worker \
PATH="/builds/worker/.local/bin:$PATH" \
TERM=hterm-256color
VOLUME /builds/worker/checkouts
VOLUME /builds/worker/.cache
USER root