-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
42 lines (30 loc) · 1.08 KB
/
Dockerfile
File metadata and controls
42 lines (30 loc) · 1.08 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
FROM docker.io/library/alpine:latest AS base
RUN echo "@edgec https://dl-cdn.alpinelinux.org/alpine/edge/community" >> /etc/apk/repositories
RUN echo "@testing https://dl-cdn.alpinelinux.org/alpine/edge/testing" >> /etc/apk/repositories
RUN apk add --no-cache \
mandoc docs \
please@testing \
git chezmoi \
bash fish nushell@edgec starship \
uutils@edgec curl jq yq ncdu \
htop btop \
neovim micro
RUN echo -e "[please]\nname=^(root|sapphiccode)$\ntarget=.*\nrule=.*\nrequire_pass=false\nsyslog=false" > /etc/please.ini && \
please whoami
COPY --chown=root:root . /root/.local/share/chezmoi
RUN chezmoi apply -v && \
test -d "${HOME}/.age"
RUN adduser -D -s /usr/bin/fish sapphiccode
COPY --chown=sapphiccode:sapphiccode . /home/sapphiccode/.local/share/chezmoi
USER sapphiccode
RUN chezmoi apply
CMD [ "fish", "-l" ]
# ---
FROM base AS python
USER root
RUN apk add --no-cache \
python3 py3-pip py3-requests ipython pipx \
build-base python3-dev libffi-dev
USER sapphiccode
RUN for pkg in poetry pdm; do pipx install $pkg; done && \
pip cache purge