/
Dockerfile
68 lines (57 loc) · 1.44 KB
/
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
FROM ubuntu:latest
ENV DEBIAN_FRONTEND=noninteractive
# Locales
RUN apt-get update && apt-get install -y locales
ENV LANG="en_US.UTF-8" LC_ALL="en_US.UTF-8" LANGUAGE="en_US.UTF-8"
RUN echo "en_US.UTF-8 UTF-8" > /etc/locale.gen && \
locale-gen --purge $LANG && \
dpkg-reconfigure --frontend=noninteractive locales && \
update-locale LANG=$LANG LC_ALL=$LC_ALL LANGUAGE=$LANGUAGE
# Common packages
RUN apt-get update && apt-get install -y \
build-essential \
software-properties-common \
tzdata \
psmisc \
curl \
git \
wget \
tmux \
vim \
zsh \
ledger \
mosh \
ruby \
ruby-dev \
mosquitto \
mosquitto-clients \
postgresql-client \
jq \
rsync \
ansible \
lastpass-cli
# Install Node.js LTS
RUN curl -sL https://deb.nodesource.com/setup_14.x | bash -
RUN apt-get install -y nodejs
# Install Bundler
RUN gem install bundler --no-document
# Install oh-my-zsh
RUN chsh -s /usr/bin/zsh
RUN curl -L http://install.ohmyz.sh | sh || true
# Set up timezone
ENV TZ 'Europe/Berlin'
RUN echo $TZ > /etc/timezone && \
rm /etc/localtime && \
ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && \
dpkg-reconfigure -f noninteractive tzdata
# Set up dotfiles
COPY ./zsh/* /root/
COPY ./vim/ /root/
COPY ./git/* /root/
# Set up volumes
WORKDIR /projects
VOLUME /projects
VOLUME /keys
# Enable colors
ENV TERM=xterm-256color
CMD ["tmux"]