-
Notifications
You must be signed in to change notification settings - Fork 0
/
Containerfile.dev
44 lines (31 loc) · 1.43 KB
/
Containerfile.dev
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
################################################################################################
# Ubuntu Base
################################################################################################
FROM public.ecr.aws/lts/ubuntu:24.04_stable as ubuntu-base
COPY bin/setup_development_environment.sh /tmp/setup_development_environment.sh
COPY apt-get_dependencies.txt /tmp/apt-get_dependencies.txt
WORKDIR /tmp
# hadolint ignore=DL3008
RUN apt-get update \
&& apt-get upgrade -y --no-install-recommends \
&& OSTYPE=linux /tmp/setup_development_environment.sh \
&& rm /tmp/setup_development_environment.sh \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/* \
&& chsh -s /bin/zsh \
&& printf "%s\n" "eval \"\$(direnv hook zsh)\"" >> ~/.zshrc
WORKDIR /workdir
ENTRYPOINT [ "/bin/zsh" ]
################################################################################################
# Fedora Base
################################################################################################
FROM public.ecr.aws/docker/library/fedora:42 as fedora-base
COPY bin/setup_development_environment.sh /tmp/setup_development_environment.sh
COPY dnf_dependencies.txt /tmp/dnf_dependencies.txt
WORKDIR /tmp
RUN dnf update -y \
&& OSTYPE=linux /tmp/setup_development_environment.sh \
&& chsh -s /bin/zsh \
&& printf "%s\n" "eval \"\$(direnv hook zsh)\"" >> ~/.zshrc
WORKDIR /workdir
ENTRYPOINT [ "/bin/zsh" ]