File: Dockerfile

package info (click to toggle)
dmlc-core 0.5%2Bgit20240614.1334185-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,672 kB
  • sloc: cpp: 16,312; python: 1,421; ansic: 1,014; java: 802; makefile: 236; sh: 140; xml: 138
file content (27 lines) | stat: -rw-r--r-- 860 bytes parent folder | download | duplicates (3)
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
FROM s390x/ubuntu:20.04

# Environment
ENV DEBIAN_FRONTEND noninteractive
SHELL ["/bin/bash", "-c"]   # Use Bash as shell

# Install all basic requirements
RUN \
    apt-get update && \
    apt-get install -y --no-install-recommends tar unzip wget git build-essential ninja-build \
      cmake time python3 python3-pip python3-numpy python3-scipy python3-sklearn r-base && \
    python3 -m pip install pytest hypothesis

ENV GOSU_VERSION 1.10

# Install lightweight sudo (not bound to TTY)
RUN set -ex; \
    wget -O /usr/local/bin/gosu "https://github.com/tianon/gosu/releases/download/$GOSU_VERSION/gosu-amd64" && \
    chmod +x /usr/local/bin/gosu && \
    gosu nobody true

# Default entry-point to use if running locally
# It will preserve attributes of created files
COPY entrypoint.sh /scripts/

WORKDIR /workspace
ENTRYPOINT ["/scripts/entrypoint.sh"]