File: Dockerfile

package info (click to toggle)
voms 2.1.3-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 3,820 kB
  • sloc: ansic: 11,433; cpp: 10,587; exp: 7,863; sh: 1,264; xml: 987; makefile: 788; yacc: 391; lex: 199
file content (28 lines) | stat: -rw-r--r-- 960 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
28
FROM centos:7

# Allow customization of build user ID and name
ARG BUILD_USER=build
ARG BUILD_USER_UID=501

RUN echo "include_only=.garr.it,.cern.ch" >> /etc/yum/pluginconf.d/fastestmirror.conf && \
  yum clean all && \
  yum install -y hostname epel-release && \
  yum -y update && \
  yum -y install which wget tar sudo file && \
  yum -y install which wget tar sudo file && \
  echo '%wheel ALL=(ALL) NOPASSWD:ALL' >> /etc/sudoers && \
  adduser --uid ${BUILD_USER_UID} ${BUILD_USER} && \
  usermod -a -G wheel ${BUILD_USER} && \
  yum -y install \
  gdb git expat-devel autoconf automake make libtool pkgconfig openssl-devel gsoap-devel \
  mysql-devel libxslt docbook-style-xsl doxygen bison gcc-c++ gcc && \
  yum clean all && \
  rm -rf /var/cache/yum

ENV TINI_VERSION v0.18.0
ADD https://github.com/krallin/tini/releases/download/${TINI_VERSION}/tini /tini
RUN chmod +x /tini
ENTRYPOINT ["/tini", "--"]

# USER $BUILD_USER
# WORKDIR /home/$BUILD_USER