forked from mozilla-releng/scriptworker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
27 lines (20 loc) · 761 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
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
ARG PYTHON_VERSION
FROM python:$PYTHON_VERSION
# Add worker user
RUN mkdir /builds && \
groupadd -g 1000 -o worker && \
useradd -d /builds/worker -s /bin/bash -m worker -g 1000 -o -u 1000 && \
mkdir /builds/worker/artifacts && \
chown worker:worker /builds/worker/artifacts
RUN pip install tox
# %include-run-task
ENV SHELL=/bin/bash \
HOME=/builds/worker \
PATH=/builds/worker/.local/bin:$PATH
VOLUME /builds/worker/checkouts
VOLUME /builds/worker/.cache
# Set a default command useful for debugging
CMD ["/bin/bash", "--login"]