File: Dockerfile

package info (click to toggle)
rocm-docs-core 1.31.1-3
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 2,728 kB
  • sloc: python: 2,002; sh: 223; javascript: 152; cpp: 29; makefile: 27
file content (30 lines) | stat: -rw-r--r-- 953 bytes parent folder | download
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
FROM python:3.10-bullseye

ENV LANG=C.UTF-8 \
    LC_ALL=C.UTF-8

RUN apt-get update &&                        \
  apt-get install -y --no-install-recommends \
  curl                                       \
  doxygen                                    \
  graphviz                                   \
  ssh                                        \
  sudo                                       \
  zsh                                        \
  && rm -rf /var/lib/apt/lists/*

# Install just
RUN curl --proto '=https' -sSf https://just.systems/install.sh \
    | sudo bash -s -- --tag 1.13.0 --to /usr/local/bin

# Add the render group and a user with sudo permissions for the container
RUN useradd -Um developer \
    && echo developer ALL=\(root\) NOPASSWD:ALL > /etc/sudoers.d/developer \
    && chmod 0440 /etc/sudoers.d/developer

CMD mkdir -p /workspace && chown developer:developer /workspace

WORKDIR /workspace
VOLUME /workspace

USER developer