-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile
39 lines (27 loc) · 828 Bytes
/
Dockerfile
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
FROM ubuntu:focal
LABEL maintainer="Mark He Huang <[email protected]>"
USER root
ENV DEBIAN_FRONTEND=noninteractive
ENV TZ=Asia/Singapore
# RUN apt-get update && apt-get install apt-file -y && apt-file update
ENV TERM=xterm-256color
RUN APT_INSTALL="apt-get install -y --no-install-recommends" && \
apt-get update && \
DEBIAN_FRONTEND=noninteractive $APT_INSTALL \
apt-utils \
ca-certificates \
sudo \
wget \
curl
# Set Timezone data
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && \
echo $TZ > /etc/timezone && \
DEBIAN_FRONTEND=noninteractive apt-get install -y tzdata
# variable HOME may not be set, set to /root anyway
WORKDIR ${HOME:-/root}
# Copy dotfiles
COPY . ./dotfiles
# Install dotfiles
RUN cd dotfiles && ./install
# Initialize zsh
CMD cd ${HOME:-/root} && zsh