-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
51 lines (43 loc) · 1.02 KB
/
Dockerfile
File metadata and controls
51 lines (43 loc) · 1.02 KB
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
#
# Building arguments
#
ARG VERSION=latest
#
# Release image for the scripts
#
FROM ubuntu:22.04
#
# Disabling interactive mode
#
ENV DEBIAN_FRONTEND=noninteractive
#
# Installation of wget for installation script
#
RUN apt-get update
RUN apt-get install -y wget
#
# Creating directory for the scripts
#
RUN mkdir /scripts/
#
# Coping installation script
#
COPY install-choco-scripts.sh /scripts/
#
# Installation of the choco-scripts
#
RUN /scripts/install-choco-scripts.sh /scripts/ $VERSION
#
# Some installation in the packages are interactive, so we
# want to force noninteractive mode
#
RUN ln -fs /usr/share/zoneinfo/Europe/Warsaw /etc/localtime
RUN apt-get install -y tzdata
RUN dpkg-reconfigure --frontend noninteractive tzdata
RUN apt-get install -y sudo
#
# Installs all tools required by the template script by default
#
RUN cp /scripts/template.sh /tmp/dummy_script.sh
RUN sed "s/<SCRIPT_ARGUMENTS>//g" -i "/tmp/dummy_script.sh"
RUN /tmp/dummy_script.sh --install-all-required --non-interactive