File: Dockerfile.ubuntu.summary

package info (click to toggle)
libvpl-tools 1.5.0-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 7,640 kB
  • sloc: cpp: 107,613; python: 4,303; ansic: 3,202; sh: 159; lisp: 52; makefile: 13
file content (34 lines) | stat: -rw-r--r-- 986 bytes parent folder | download | duplicates (4)
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
# ==============================================================================
# Copyright (C) Intel Corporation
#
# SPDX-License-Identifier: MIT
# ==============================================================================

FROM ${DOCKER_REGISTRY}ubuntu:24.04

WORKDIR /setup

ARG DEBIAN_FRONTEND=noninteractive
ARG GROUP_ID
ARG USER_ID

RUN if [ -z "$GROUP_ID" ]; then echo \
    "GROUP_ID is not set for container. Use --build-arg GROUP_ID=$(id -g)"; \
    exit 1; fi
RUN if [ -z "$USER_ID" ]; then echo \
    "USER_ID is not set for container. Use --build-arg USER_ID=$(id -u)"; \
    exit 1; fi

RUN apt-get update && apt-get install -y --no-install-recommends \
    python3 \
    python3-xlsxwriter \
    python3-defusedxml \
    && \
    rm -rf /var/lib/apt/lists/*

# Use non-root user
RUN groupadd --system --gid ${GROUP_ID} appgroup \
 && useradd --system --create-home --uid ${USER_ID} --gid ${GROUP_ID} appuser
USER appuser

HEALTHCHECK CMD python3 --version || exit 1