-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathDockerfile
51 lines (39 loc) · 857 Bytes
/
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
ARG PHP_VERSION=8.2
ARG BASE_IMAGE=ghcr.io/10up/wp-php-fpm-dev
FROM ${BASE_IMAGE}:${PHP_VERSION}-ubuntu
ARG PHP_VERSION=8.2
USER root
RUN apt-get update && \
apt-get install -y \
python3-pip \
zsh \
glances \
silversearcher-ag \
tmux \
screen \
jq \
parallel \
build-essential && \
apt clean all && rm -rf /var/lib/apt/lists/*
RUN \
pip3 --no-cache-dir install \
python-gitlab \
mitzasql \
ranger-fm
RUN \
curl -fsSL https://code-server.dev/install.sh | sh; \
rm -rf ~/.cache
RUN chsh -s /bin/bash www-data
COPY code-server-entrypoint.sh /
COPY bash.sh /
RUN \
chmod +x /code-server-entrypoint.sh && \
chmod +x /bash.sh
USER www-data
RUN \
touch ~/.zshrc; \
mkdir ~/.parallel; \
touch ~/.parallel/will-cite
WORKDIR /var/www/html
SHELL ["/bin/bash"]
ENTRYPOINT ["/code-server-entrypoint.sh"]