Skip to content

Commit 32a8f16

Browse files
committed
feature: docker: io: get rid of haskell: to slow install
1 parent aa74123 commit 32a8f16

1 file changed

Lines changed: 12 additions & 11 deletions

File tree

docker/Dockerfile.io

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -17,38 +17,39 @@ ENV DEBIAN_FRONTEND=noninteractive \
1717
BUN_INSTALL=/usr/local/src/bun \
1818
NPM_CONFIG_CACHE=/tmp/.npm
1919

20-
ARG GO_VERSION=1.21.2
21-
ARG NVIM_VERSION=0.12.0
2220
ARG UBUNTU_DEPS="libatomic1 curl wget git net-tools iproute2"
2321
ARG RUST_DEPS="build-essential"
24-
ARG HASKELL_DEPS="build-essential curl libffi-dev libffi8 libgmp-dev libgmp10 libncurses-dev pkg-config"
2522
ARG DEPS="gdb upx-ucl less ffmpeg net-tools netcat-openbsd mc iputils-ping vim bat fzf locales sudo command-not-found ncdu aptitude htop btop hexyl"
2623

2724
RUN apt-get update && \
2825
apt-get upgrade -y && \
2926
apt-get autoremove && \
30-
apt-get install -y ${UBUNTU_DEPS} ${RUST_DEPES} ${HASKELL_DEPS} ${DEPS} && \
27+
apt-get install -y ${UBUNTU_DEPS} ${RUST_DEPES} ${DEPS} && \
3128
echo "> Update command-not-found database. Run 'sudo apt update' to populate it." && \
3229
apt-get update && \
3330
apt-get autoremove && \
3431
apt-get clean && \
3532
echo "> create user" && \
3633
useradd -m -s /bin/bash -u 1337 instalador && \
3734
chown -R instalador /usr/local && \
38-
chown -R instalador /usr/local && \
39-
su instalador && \
40-
echo "> install bun" && \
35+
chown -R instalador /tmp
36+
37+
USER instalador
38+
39+
RUN echo "> install bun" && \
4140
curl https://bun.sh/install | bash && \
4241
echo "> install npm globals" && \
4342
bun i palabra wisdom nupdate version-io redrun superc8 supertape madrun redlint putout renamify-cli runny redfork -g && \
4443
echo "> install rust go deno bun fasm nvim" && \
45-
bun ${BUN_INSTALL}/bin/palabra i nvm rust go deno fasm nvim haskell rizin yara -d /usr/local/src && \
44+
bun ${BUN_INSTALL}/bin/palabra i nvm rust go deno fasm nvim rizin yara -d /usr/local/src && \
4645
echo "> install node" && \
4746
. $NVM_DIR/nvm.sh && \
4847
nvm i node && \
49-
ln -fs /${NVM_DIR}/versions/node/$(node -v)/bin/node /usr/local/bin/node && \
50-
echo "> remove user" && \
51-
exit && \
48+
ln -fs /${NVM_DIR}/versions/node/$(node -v)/bin/node /usr/local/bin/node
49+
50+
USER root
51+
52+
RUN echo "> remove user" && \
5253
userdel -r instalador && \
5354
echo "> install gritty" && \
5455
bun r gritty --omit dev && \

0 commit comments

Comments
 (0)