-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
69 lines (52 loc) · 2.33 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
69
# Pull the minimal Ubuntu image
FROM ubuntu:24.04
ENV DOCKER_BUILDKIT=1
# macht mise global verfügbar
ENV PATH="/root/.local/bin:${PATH}"
# Install Nginx
RUN apt-get -y update \
&& apt-get -y install nginx git curl gnupg software-properties-common --no-install-recommends \
&& rm -rf /var/lib/apt/lists/*
# Run the Nginx server
CMD ["/usr/sbin/nginx", "-g", "daemon off;"]
# --- Same as Dockerfile until here...
# Install dev dependencies
SHELL ["/bin/bash", "-c"]
## Common tools
RUN apt-get -y update && apt-get -y install neovim jq less openssl\
openssh-client gpg wget zip unzip autoconf patch build-essential\
rustc libssl-dev libyaml-dev libreadline6-dev zlib1g-dev libgmp-dev\
libncurses5-dev libffi-dev libgdbm6 libgdbm-dev libdb-dev uuid-dev\
--no-install-recommends
## Mise
RUN curl https://mise.run | sh \
&& echo 'eval "$(~/.local/bin/mise activate bash)"' >> ~/.bashrc
## Java
# RUN mise use java@lts -g
## Nodejs
# RUN mise use node@lts -g
# Funky Terminal
RUN sh -c "$(wget -O- https://github.com/deluan/zsh-in-docker/releases/download/v1.2.0/zsh-in-docker.sh)" -- \
-t https://github.com/denysdovhan/spaceship-prompt \
&& curl -sS https://starship.rs/install.sh | sh -s - --yes \
&& echo 'eval "$(starship init bash)"' >> ~/.bashrc \
&& echo 'eval "$(starship init zsh)"' >> ~/.zshrc \
&& echo 'eval "$(~/.local/bin/mise activate zsh)"' >> ~/.zshrc
# Goodies
## AWS CLI
# RUN curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip" \
# && unzip awscliv2.zip \
# && ./aws/install
## AWS CLI Apple Silicon
# RUN curl "https://awscli.amazonaws.com/awscli-exe-linux-aarch64.zip" -o "awscliv2.zip" \
# && unzip awscliv2.zip \
# && ./aws/install
## Terraform 1.9.2
# RUN wget -O- https://apt.releases.hashicorp.com/gpg | gpg --dearmor | tee /usr/share/keyrings/hashicorp-archive-keyring.gpg > /dev/null \
# && gpg --no-default-keyring --keyring /usr/share/keyrings/hashicorp-archive-keyring.gpg --fingerprint \
# && echo "deb [signed-by=/usr/share/keyrings/hashicorp-archive-keyring.gpg] https://apt.releases.hashicorp.com bookworm main" | tee /etc/apt/sources.list.d/hashicorp.list \
# && apt-get update && apt-get -y install terraform=1.9.2-* --no-install-recommends
## Kamal via mise and ruby
# RUN mise use [email protected] -g \
# && mise x -- gem install kamal -v 1.9.2
WORKDIR /workspace