forked from Zimbra/zm-base-os
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile-devcore-ubuntu-22.04
36 lines (30 loc) · 1.27 KB
/
Dockerfile-devcore-ubuntu-22.04
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
35
36
# vi:ft=dockerfile
FROM ubuntu:22.04
ENV DEBIAN_FRONTEND=noninteractive
# SYSTEM
RUN apt-get -qq update
RUN apt-get -qq dist-upgrade -y
RUN apt-get -qq autoremove -y
RUN apt-get -qq install -y apt-utils
RUN apt-get -qq install -y ca-certificates tzdata
RUN apt-get -qq install -y curl wget
RUN apt-get -qq install -y software-properties-common
RUN apt-get -qq install -y apt-transport-https
RUN apt-get -qq install -y sudo
# ENVIRONMENT
RUN apt-get -qq install -y git perl ruby pkg-config libidn11-dev libwww-perl libz-dev libaio-dev libncurses-dev libexpat-dev libpcre3-dev libperl-dev libpopt-dev libbz2-dev libtest-simple-perl libsocket6-perl libtest-inter-perl libtest-warn-perl libtest-deep-perl debhelper
RUN apt-get update && apt-get -qq install -y lib32z1-dev libz-dev build-essential zlib*
RUN apt-get -qq install -y openjdk-8-jdk ant ant-optional maven rsync
RUN apt-get install -y locales locales-all
RUN curl https://rclone.org/install.sh | sudo bash
ENV LC_ALL en_US.UTF-8
ENV LANG en_US.UTF-8
ENV LANGUAGE en_US.UTF-8
# USER
RUN groupadd --gid 1000 build \
&& useradd --uid 1000 --gid 1000 -m build \
&& echo build ALL=\(root\) NOPASSWD:ALL > /etc/sudoers.d/build \
&& chmod 0440 /etc/sudoers.d/build \
&& chown -R 1000:1000 /home/build
USER build
WORKDIR /home/build