|
1 | 1 | FROM node |
| 2 | + |
2 | 3 | LABEL maintainer="Coderaiser" |
3 | 4 | LABEL org.opencontainers.image.source="https://github.com/coderaiser/cloudcmd" |
4 | 5 |
|
5 | 6 | RUN mkdir -p /usr/src/cloudcmd |
| 7 | + |
6 | 8 | WORKDIR /usr/src/cloudcmd |
7 | 9 |
|
8 | 10 | COPY package.json /usr/src/cloudcmd/ |
9 | 11 |
|
10 | | -ENV DEBIAN_FRONTEND=noninteractive |
11 | | -ENV PATH=/usr/local/src/cargo/bin:$PATH |
| 12 | +ENV DEBIAN_FRONTEND=noninteractive \ |
| 13 | + PATH=/usr/local/src/cargo/bin:$PATH |
12 | 14 |
|
13 | 15 | ARG GO_VERSION=1.21.2 |
14 | 16 |
|
15 | | -RUN apt-get update && apt-get upgrade -y && apt-get autoremove && \ |
16 | | - apt-get install -y less ffmpeg net-tools netcat-openbsd mc iputils-ping vim neovim bat fzf \ |
17 | | - locales sudo command-not-found && \ |
| 17 | +RUN apt-get update && \ |
| 18 | + apt-get upgrade -y && \ |
| 19 | + apt-get autoremove && \ |
| 20 | + apt-get install -y less ffmpeg net-tools netcat-openbsd mc iputils-ping vim neovim bat fzf locales sudo command-not-found && \ |
18 | 21 | echo "> Update command-not-found database. Run 'sudo apt update' to populate it." && \ |
19 | 22 | apt-get update && \ |
20 | | - apt-get autoremove && apt-get clean && \ |
| 23 | + apt-get autoremove && \ |
| 24 | + apt-get clean && \ |
21 | 25 | rm -rf /var/lib/apt/lists/* && \ |
22 | | - echo "> install nix" && \ |
23 | | - useradd -m -s /bin/bash nixuser && \ |
24 | | - echo "nixuser ALL=(ALL) NOPASSWD:ALL" > /etc/sudoers.d/nixuser && \ |
25 | | - chmod 0440 /etc/sudoers.d/nixuser && \ |
26 | | - su - nixuser -c "curl -L https://nixos.org/nix/install | sh -s -- --no-daemon --no-sendbox" && \ |
27 | | - mv /home/nixuser/.nix-profile /usr/local/src/nix-profile && \ |
28 | | - mv /home/nixuser/.nix-defexpr /usr/local/src/nix-defexpr && \ |
29 | | - rm -rf /etc/sudoers.d/nixuser && \ |
30 | | - userdel -r nixuser && \ |
31 | 26 | echo "> install nvm" && \ |
32 | 27 | curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.4/install.sh | bash && \ |
33 | 28 | mv ~/.nvm /usr/local/src/nvm && \ |
34 | 29 | echo "> install npm globals" && \ |
35 | | - npm i wisdom nupdate version-io redrun superc8 \ |
36 | | - supertape madrun redlint putout renamify-cli runny redfork -g && \ |
| 30 | + npm i wisdom nupdate version-io redrun superc8 supertape madrun redlint putout renamify-cli runny redfork -g && \ |
37 | 31 | echo "> install bun" && \ |
38 | 32 | curl -fsSL https://bun.sh/install | bash && \ |
39 | 33 | mv ~/.bun /usr/local/src/bun && \ |
@@ -83,22 +77,16 @@ COPY . /usr/src/cloudcmd |
83 | 77 |
|
84 | 78 | WORKDIR / |
85 | 79 |
|
86 | | -ENV cloudcmd_terminal=true |
87 | | -ENV cloudcmd_terminal_path=gritty |
88 | | -ENV cloudcmd_open=false |
89 | | -
|
90 | | -ENV PATH=node_modules/.bin:$PATH |
91 | | -ENV PATH=/usr/local/src/nix/profile/bin:$PATH |
92 | | -ENV NIX_PATH=/usr/local/src/nix/defexpr/channels |
93 | | -
|
94 | | -ENV BUN_INSTALL_CACHE_DIR=/tmp/bun-cache |
95 | | -ENV DENO_DIR=/tmp/deno-cache |
96 | | -
|
97 | | -ENV LANG=en_US.UTF-8 |
98 | | -ENV LANGUAGE=en_US:en |
99 | | -ENV LC_ALL=en_US.UTF-8 |
100 | | -
|
101 | | -ENV TERM=xterm-256color |
| 80 | +ENV cloudcmd_terminal=true \ |
| 81 | + cloudcmd_terminal_path=gritty \ |
| 82 | + cloudcmd_open=false \ |
| 83 | + PATH=node_modules/.bin:$PATH \ |
| 84 | + BUN_INSTALL_CACHE_DIR=/tmp/bun-cache \ |
| 85 | + DENO_DIR=/tmp/deno-cache \ |
| 86 | + LANG=en_US.UTF-8 \ |
| 87 | + LANGUAGE=en_US:en \ |
| 88 | + LC_ALL=en_US.UTF-8 \ |
| 89 | + TERM=xterm-256color |
102 | 90 |
|
103 | 91 | EXPOSE 8000 |
104 | 92 |
|
|
0 commit comments