-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: new alpine 3.19 base image for all php images
- Loading branch information
Showing
10 changed files
with
77 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
FROM alpine:3.19 | ||
|
||
RUN set -eux; \ | ||
apk update; \ | ||
apk add icu-data-full exa tzdata git zsh-vcs zsh zsh-autosuggestions zsh-syntax-highlighting; \ | ||
cat "/usr/share/zoneinfo/UTC" > /etc/localtime | ||
|
||
COPY docker/ /ohmyzsh/ | ||
|
||
RUN set -eux; \ | ||
wget https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh; \ | ||
ZSH=/ohmyzsh/.oh-my-zsh sh install.sh --unattended --keep-zshrc; \ | ||
rm ./install.sh; \ | ||
git clone https://github.com/spaceship-prompt/spaceship-prompt.git "/ohmyzsh/.oh-my-zsh/themes/spaceship-prompt" --depth=1; \ | ||
ln -s "/ohmyzsh/.oh-my-zsh/themes/spaceship-prompt/spaceship.zsh-theme" "/ohmyzsh/.oh-my-zsh/themes/spaceship.zsh-theme" | ||
|
||
RUN addgroup -S 1000; \ | ||
adduser -D -S -u 1000 -G 1000 -h /home/dockeruser -s /bin/sh dockeruser; | ||
|
||
RUN apk del git tzdata \ | ||
&& chmod +x /ohmyzsh/docker-entrypoint \ | ||
&& cp /ohmyzsh/zsh/.[^.]* /root/ \ | ||
&& mv /ohmyzsh/zsh/.[^.]* /home/dockeruser/ \ | ||
&& chown -R 1000:1000 /home/dockeruser/ \ | ||
&& rm -rf /var/cache/apk/* | ||
|
||
CMD [ "/ohmyzsh/docker-entrypoint" ] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
#!/bin/sh | ||
set -e | ||
|
||
if [ -t 1 ]; then | ||
exec zsh | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
alias ls="exa --icons --group-directories-first" | ||
alias l="exa -aaghl --git --icons --group-directories-first" | ||
alias ll="exa -ghl --git --icons --group-directories-first" | ||
alias lt="exa --tree --level=2 --icons --group-directories-first" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
export ZSH="/ohmyzsh/.oh-my-zsh" | ||
|
||
ZSH_THEME="spaceship" | ||
ZSH_DISABLE_COMPFIX=true | ||
|
||
source /usr/share/zsh/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh | ||
source /usr/share/zsh/plugins/zsh-autosuggestions/zsh-autosuggestions.zsh | ||
source $ZSH/oh-my-zsh.sh | ||
|
||
[ -f ~/.aliases.zsh ] && source ~/.aliases.zsh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters