Skip to content

Commit 754e985

Browse files
committed
chore: cloudcmd: actions: lint ☘️
1 parent 4c5745a commit 754e985

File tree

4 files changed

+19
-13
lines changed

4 files changed

+19
-13
lines changed

docker/Dockerfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
FROM node
2+
23
LABEL maintainer="Coderaiser"
34
LABEL org.opencontainers.image.source="https://github.com/coderaiser/cloudcmd"
45

56
RUN mkdir -p /usr/src/cloudcmd
7+
68
WORKDIR /usr/src/cloudcmd
79

810
COPY package.json /usr/src/cloudcmd/

docker/Dockerfile.alpine

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
FROM node:alpine
2+
23
LABEL maintainer="Coderaiser"
34
LABEL org.opencontainers.image.source="https://github.com/coderaiser/cloudcmd"
45

56
RUN mkdir -p /usr/src/cloudcmd
7+
68
WORKDIR /usr/src/cloudcmd
79

810
COPY package.json /usr/src/cloudcmd/
@@ -21,6 +23,7 @@ RUN apk update && \
2123
COPY . /usr/src/cloudcmd
2224

2325
WORKDIR /
26+
2427
ENV cloudcmd_terminal=true
2528
ENV cloudcmd_terminal_path=gritty
2629
ENV cloudcmd_open=false
@@ -29,4 +32,3 @@ ENV cloudcmd_vim=true
2932
EXPOSE 8000
3033

3134
ENTRYPOINT ["/usr/src/cloudcmd/bin/cloudcmd.js"]
32-

docker/Dockerfile.io

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
FROM node
2+
23
LABEL maintainer="Coderaiser"
34
LABEL org.opencontainers.image.source="https://github.com/coderaiser/cloudcmd"
45

56
RUN mkdir -p /usr/src/cloudcmd
7+
68
WORKDIR /usr/src/cloudcmd
79

810
COPY package.json /usr/src/cloudcmd/
@@ -12,12 +14,14 @@ ENV PATH=/usr/local/src/cargo/bin:$PATH
1214

1315
ARG GO_VERSION=1.21.2
1416

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 && \
1821
echo "> Update command-not-found database. Run 'sudo apt update' to populate it." && \
1922
apt-get update && \
20-
apt-get autoremove && apt-get clean && \
23+
apt-get autoremove && \
24+
apt-get clean && \
2125
rm -rf /var/lib/apt/lists/* && \
2226
echo "> install nix" && \
2327
useradd -m -s /bin/bash nixuser && \
@@ -31,8 +35,7 @@ RUN apt-get update && apt-get upgrade -y && apt-get autoremove && \
3135
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.4/install.sh | bash && \
3236
mv ~/.nvm /usr/local/src/nvm && \
3337
echo "> install npm globals" && \
34-
npm i wisdom nupdate version-io redrun superc8 \
35-
supertape madrun redlint putout renamify-cli runny redfork -g && \
38+
npm i wisdom nupdate version-io redrun superc8 supertape madrun redlint putout renamify-cli runny redfork -g && \
3639
echo "> install bun" && \
3740
curl -fsSL https://bun.sh/install | bash && \
3841
mv ~/.bun /usr/local/src/bun && \
@@ -64,7 +67,7 @@ RUN apt-get update && apt-get upgrade -y && apt-get autoremove && \
6467
echo "alias buni='bun i --no-save'" >> /etc/bash.bashrc && \
6568
echo "alias bat='batcat'" >> /etc/bash.bashrc && \
6669
echo ". /usr/local/src/nvm/nvm.sh" >> /etc/bash.bashrc && \
67-
echo 'PS1="\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ "' >> /etc/bash.bashrc && \
70+
echo 'PS1="[033[01;32m]u@h[033[00m]:[033[01;34m]w[033[00m]\$ "' >> /etc/bash.bashrc && \
6871
echo "> setup inputrc" && \
6972
echo "set editing-mode vi" >> /etc/inputrc && \
7073
echo "TAB: menu-complete" >> /etc/inputrc && \
@@ -85,18 +88,16 @@ WORKDIR /
8588
ENV cloudcmd_terminal=true
8689
ENV cloudcmd_terminal_path=gritty
8790
ENV cloudcmd_open=false
88-
8991
ENV PATH=node_modules/.bin:$PATH
92+
9093
ENV PATH=/usr/local/src/nix/profile/bin:$PATH
9194
ENV NIX_PATH=/usr/local/src/nix/defexpr/channels
9295
9396
ENV BUN_INSTALL_CACHE_DIR=/tmp/bun-cache
9497
ENV DENO_DIR=/tmp/deno-cache
95-
9698
ENV LANG=en_US.UTF-8
9799
ENV LANGUAGE=en_US:en
98100
ENV LC_ALL=en_US.UTF-8
99-
100101
ENV TERM=xterm-256color
101102
102103
EXPOSE 8000

docker/Dockerfile.slim

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
FROM node:slim AS build
22

33
RUN mkdir -p /usr/src/cloudcmd/
4+
45
WORKDIR /usr/src/cloudcmd
56

67
COPY package.json /usr/src/cloudcmd/
@@ -20,8 +21,8 @@ COPY . /usr/src/cloudcmd
2021

2122
FROM node:slim AS runtime
2223

23-
COPY --from=build /usr/src/cloudcmd /usr/src/cloudcmd
24-
COPY --from=build /root/.bun /root/.bun
24+
COPY /usr/src/cloudcmd /usr/src/cloudcmd
25+
COPY /root/.bun /root/.bun
2526

2627
LABEL maintainer="Coderaiser"
2728
LABEL org.opencontainers.image.source="https://github.com/coderaiser/cloudcmd"

0 commit comments

Comments
 (0)