doc/spec/docker/Dockerfile.build
raw| 1 | # SPDX-FileCopyrightText: 2019-2020 Intel Corporation |
| 2 | # |
| 3 | # SPDX-License-Identifier: MIT |
| 4 | |
| 5 | FROM ubuntu:20.04 |
| 6 | COPY ubuntu-packages.txt install.sh requirements.txt /tmp/ |
| 7 | WORKDIR /tmp |
| 8 | RUN ./install.sh |
| 9 | |
| 10 | # Use non-root user |
| 11 | ARG GROUP_ID=10000 |
| 12 | ARG USER_ID=10001 |
| 13 | RUN addgroup --gid ${GROUP_ID} --system appgroup \ |
| 14 | && adduser --uid ${USER_ID} --system --gid ${GROUP_ID} appuser |
| 15 | USER appuser |
| 16 | |
| 17 | HEALTHCHECK CMD python3 --version || exit 1 |