mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-07-17 16:38:18 +00:00
feature: docker: io: apt-get upgrade
This commit is contained in:
parent
582b7423dc
commit
1fc1e3734c
4 changed files with 27 additions and 34 deletions
|
|
@ -1,8 +1,10 @@
|
|||
FROM node
|
||||
|
||||
LABEL maintainer="Coderaiser"
|
||||
LABEL org.opencontainers.image.source="https://github.com/coderaiser/cloudcmd"
|
||||
|
||||
RUN mkdir -p /usr/src/cloudcmd
|
||||
|
||||
WORKDIR /usr/src/cloudcmd
|
||||
|
||||
COPY package.json /usr/src/cloudcmd/
|
||||
|
|
|
|||
|
|
@ -1,8 +1,10 @@
|
|||
FROM node:alpine
|
||||
|
||||
LABEL maintainer="Coderaiser"
|
||||
LABEL org.opencontainers.image.source="https://github.com/coderaiser/cloudcmd"
|
||||
|
||||
RUN mkdir -p /usr/src/cloudcmd
|
||||
|
||||
WORKDIR /usr/src/cloudcmd
|
||||
|
||||
COPY package.json /usr/src/cloudcmd/
|
||||
|
|
@ -21,6 +23,7 @@ RUN apk update && \
|
|||
COPY . /usr/src/cloudcmd
|
||||
|
||||
WORKDIR /
|
||||
|
||||
ENV cloudcmd_terminal=true
|
||||
ENV cloudcmd_terminal_path=gritty
|
||||
ENV cloudcmd_open=false
|
||||
|
|
@ -29,4 +32,3 @@ ENV cloudcmd_vim=true
|
|||
EXPOSE 8000
|
||||
|
||||
ENTRYPOINT ["/usr/src/cloudcmd/bin/cloudcmd.js"]
|
||||
|
||||
|
|
|
|||
|
|
@ -1,39 +1,33 @@
|
|||
FROM node
|
||||
|
||||
LABEL maintainer="Coderaiser"
|
||||
LABEL org.opencontainers.image.source="https://github.com/coderaiser/cloudcmd"
|
||||
|
||||
RUN mkdir -p /usr/src/cloudcmd
|
||||
|
||||
WORKDIR /usr/src/cloudcmd
|
||||
|
||||
COPY package.json /usr/src/cloudcmd/
|
||||
|
||||
ENV DEBIAN_FRONTEND=noninteractive
|
||||
ENV PATH=/usr/local/src/cargo/bin:$PATH
|
||||
ENV DEBIAN_FRONTEND=noninteractive \
|
||||
PATH=/usr/local/src/cargo/bin:$PATH
|
||||
|
||||
ARG GO_VERSION=1.21.2
|
||||
|
||||
RUN apt-get update && apt-get upgrade -y && apt-get autoremove && \
|
||||
apt-get install -y less ffmpeg net-tools netcat-openbsd mc iputils-ping vim neovim bat fzf \
|
||||
locales sudo command-not-found && \
|
||||
RUN apt-get update && \
|
||||
apt-get upgrade -y && \
|
||||
apt-get autoremove && \
|
||||
apt-get install -y less ffmpeg net-tools netcat-openbsd mc iputils-ping vim neovim bat fzf locales sudo command-not-found && \
|
||||
echo "> Update command-not-found database. Run 'sudo apt update' to populate it." && \
|
||||
apt-get update && \
|
||||
apt-get autoremove && apt-get clean && \
|
||||
apt-get autoremove && \
|
||||
apt-get clean && \
|
||||
rm -rf /var/lib/apt/lists/* && \
|
||||
echo "> install nix" && \
|
||||
useradd -m -s /bin/bash nixuser && \
|
||||
echo "nixuser ALL=(ALL) NOPASSWD:ALL" > /etc/sudoers.d/nixuser && \
|
||||
chmod 0440 /etc/sudoers.d/nixuser && \
|
||||
su - nixuser -c "curl -L https://nixos.org/nix/install | sh -s -- --no-daemon --no-sendbox" && \
|
||||
mv /home/nixuser/.nix-profile /usr/local/src/nix-profile && \
|
||||
mv /home/nixuser/.nix-defexpr /usr/local/src/nix-defexpr && \
|
||||
rm -rf /etc/sudoers.d/nixuser && \
|
||||
userdel -r nixuser && \
|
||||
echo "> install nvm" && \
|
||||
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.4/install.sh | bash && \
|
||||
mv ~/.nvm /usr/local/src/nvm && \
|
||||
echo "> install npm globals" && \
|
||||
npm i wisdom nupdate version-io redrun superc8 \
|
||||
supertape madrun redlint putout renamify-cli runny redfork -g && \
|
||||
npm i wisdom nupdate version-io redrun superc8 supertape madrun redlint putout renamify-cli runny redfork -g && \
|
||||
echo "> install bun" && \
|
||||
curl -fsSL https://bun.sh/install | bash && \
|
||||
mv ~/.bun /usr/local/src/bun && \
|
||||
|
|
@ -83,22 +77,16 @@ COPY . /usr/src/cloudcmd
|
|||
|
||||
WORKDIR /
|
||||
|
||||
ENV cloudcmd_terminal=true
|
||||
ENV cloudcmd_terminal_path=gritty
|
||||
ENV cloudcmd_open=false
|
||||
|
||||
ENV PATH=node_modules/.bin:$PATH
|
||||
ENV PATH=/usr/local/src/nix/profile/bin:$PATH
|
||||
ENV NIX_PATH=/usr/local/src/nix/defexpr/channels
|
||||
|
||||
ENV BUN_INSTALL_CACHE_DIR=/tmp/bun-cache
|
||||
ENV DENO_DIR=/tmp/deno-cache
|
||||
|
||||
ENV LANG=en_US.UTF-8
|
||||
ENV LANGUAGE=en_US:en
|
||||
ENV LC_ALL=en_US.UTF-8
|
||||
|
||||
ENV TERM=xterm-256color
|
||||
ENV cloudcmd_terminal=true \
|
||||
cloudcmd_terminal_path=gritty \
|
||||
cloudcmd_open=false \
|
||||
PATH=node_modules/.bin:$PATH \
|
||||
BUN_INSTALL_CACHE_DIR=/tmp/bun-cache \
|
||||
DENO_DIR=/tmp/deno-cache \
|
||||
LANG=en_US.UTF-8 \
|
||||
LANGUAGE=en_US:en \
|
||||
LC_ALL=en_US.UTF-8 \
|
||||
TERM=xterm-256color
|
||||
|
||||
EXPOSE 8000
|
||||
|
||||
|
|
|
|||
|
|
@ -1,6 +1,7 @@
|
|||
FROM node:slim AS build
|
||||
|
||||
RUN mkdir -p /usr/src/cloudcmd/
|
||||
|
||||
WORKDIR /usr/src/cloudcmd
|
||||
|
||||
COPY package.json /usr/src/cloudcmd/
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue