mirror of
https://github.com/mveril/qp-demo
synced 2025-01-05 02:48:55 +01:00
Improve apt
This commit is contained in:
parent
2a015ecca7
commit
cbf898355f
@ -7,12 +7,11 @@ ARG tz=Etc/UTC
|
|||||||
# enable manpages installation
|
# enable manpages installation
|
||||||
RUN sed -i 's,^path-exclude=/usr/share/man/,#path-exclude=/usr/share/man/,' /etc/dpkg/dpkg.cfg.d/excludes
|
RUN sed -i 's,^path-exclude=/usr/share/man/,#path-exclude=/usr/share/man/,' /etc/dpkg/dpkg.cfg.d/excludes
|
||||||
# Install all requierd packages
|
# Install all requierd packages
|
||||||
RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install apt-utils -y \
|
RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y \
|
||||||
# Git for download quantum package
|
# Git for download quantum package
|
||||||
git \
|
git \
|
||||||
# All necessary packages to compile and run quantum package
|
# All necessary packages to compile and run quantum package
|
||||||
curl wget python gfortran gcc g++ build-essential unzip liblapack-dev pkg-config autoconf zlib1g zlib1g-dev libgmp-dev \
|
curl wget python gfortran gcc g++ build-essential unzip liblapack-dev pkg-config autoconf zlib1g zlib1g-dev libgmp-dev
|
||||||
-y
|
|
||||||
# Add user and switch to this user
|
# Add user and switch to this user
|
||||||
RUN adduser --disabled-password --gecos '' builder
|
RUN adduser --disabled-password --gecos '' builder
|
||||||
USER builder
|
USER builder
|
||||||
@ -55,9 +54,9 @@ ARG tz=Etc/UTC
|
|||||||
RUN sed -i 's,^path-exclude=/usr/share/man/,#path-exclude=/usr/share/man/,' /etc/dpkg/dpkg.cfg.d/excludes
|
RUN sed -i 's,^path-exclude=/usr/share/man/,#path-exclude=/usr/share/man/,' /etc/dpkg/dpkg.cfg.d/excludes
|
||||||
# Install all requierd packages
|
# Install all requierd packages
|
||||||
RUN apt-get update && \
|
RUN apt-get update && \
|
||||||
DEBIAN_FRONTEND=noninteractive apt-get install \
|
DEBIAN_FRONTEND=noninteractive apt-get install -y \
|
||||||
python htop vim emacs screen tmux less wget curl tzdata man manpages-posix lsb-release \
|
python htop vim emacs screen tmux less wget curl tzdata man manpages-posix lsb-release \
|
||||||
-y && \
|
&& \
|
||||||
apt-get autoremove && apt-get clean
|
apt-get autoremove && apt-get clean
|
||||||
# Reconfigure tzdata with the good timezone
|
# Reconfigure tzdata with the good timezone
|
||||||
RUN echo $tz > /etc/timezone && rm -rf /etc/localtime && echo "set mouse=" > ~/.vimrc
|
RUN echo $tz > /etc/timezone && rm -rf /etc/localtime && echo "set mouse=" > ~/.vimrc
|
||||||
|
Loading…
Reference in New Issue
Block a user