forked from mozilla-releng/scriptworker-scripts
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
26 lines (20 loc) · 713 Bytes
/
Dockerfile
File metadata and controls
26 lines (20 loc) · 713 Bytes
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
FROM python:3.8
RUN groupadd --gid 10001 app && \
useradd -g app --uid 10001 --shell /usr/sbin/nologin --create-home --home-dir /app app
RUN ln -s /app/docker.d/healthcheck /bin/healthcheck
USER app
WORKDIR /app
COPY . /app
RUN python -m venv /app \
&& cd /app/scriptworker_client \
&& /app/bin/pip install -r requirements/base.txt \
&& /app/bin/pip install . \
&& cd /app/githubscript \
&& /app/bin/pip install -r requirements/base.txt \
&& /app/bin/pip install . \
&& python -m venv /app/configloader_venv \
&& cd /app/configloader \
&& /app/configloader_venv/bin/pip install -r requirements/base.txt \
&& /app/configloader_venv/bin/pip install . \
&& cd /app
CMD ["/app/docker.d/init.sh"]