mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-07-18 00:47:01 +00:00
feature: docker: io: /usr/src/cloudcmd -> /usr/local/share/cloudcmd
This commit is contained in:
parent
ea7b828cbb
commit
1c263c18da
1 changed files with 9 additions and 6 deletions
|
|
@ -3,11 +3,11 @@ FROM ubuntu:resolute
|
|||
LABEL maintainer="Coderaiser"
|
||||
LABEL org.opencontainers.image.source="https://github.com/coderaiser/cloudcmd"
|
||||
|
||||
RUN mkdir -p /usr/src/cloudcmd
|
||||
RUN mkdir -p /usr/local/share/cloudcmd
|
||||
|
||||
WORKDIR /usr/src/cloudcmd
|
||||
WORKDIR /usr/local/share/cloudcmd
|
||||
|
||||
COPY package.json /usr/src/cloudcmd/
|
||||
COPY package.json /usr/local/share/cloudcmd/
|
||||
|
||||
ENV DEBIAN_FRONTEND=noninteractive \
|
||||
NVM_DIR=/usr/local/share/nvm \
|
||||
|
|
@ -58,6 +58,8 @@ RUN echo "> remove user" && \
|
|||
bun r gritty --omit dev && \
|
||||
bun i gritty --omit dev && \
|
||||
bun pm cache rm && \
|
||||
echo "> setup cloudcmd" && \
|
||||
ln -s /usr/local/share/cloudcmd/bin/cloudcmd.js /usr/local/bin/cloudcmd && \
|
||||
echo "> setup git" && \
|
||||
git config --global core.whitespace -trailing-space && \
|
||||
git config --global pull.rebase true && \
|
||||
|
|
@ -81,12 +83,13 @@ RUN echo "> remove user" && \
|
|||
echo "el_GR.UTF-8 UTF-8" >> /etc/locale.gen && \
|
||||
locale-gen
|
||||
|
||||
COPY . /usr/src/cloudcmd
|
||||
COPY . /usr/local/share/cloudcmd
|
||||
|
||||
WORKDIR /
|
||||
|
||||
ENV cloudcmd_terminal=true \
|
||||
cloudcmd_terminal_path=gritty \
|
||||
cloudcmd_vim=true \
|
||||
cloudcmd_open=false \
|
||||
PATH=node_modules/.bin:$PATH \
|
||||
PATH=~/.local/bin:$PATH \
|
||||
|
|
@ -97,8 +100,8 @@ ENV cloudcmd_terminal=true \
|
|||
LC_ALL=en_US.UTF-8 \
|
||||
TERM=xterm-256color \
|
||||
XDG_CACHE_HOME=/tmp \
|
||||
XDG_DATA_HOME=/usr/local/share
|
||||
XDG_DATA_HOME=/usr/local/share \
|
||||
|
||||
EXPOSE 8000
|
||||
|
||||
ENTRYPOINT ["/usr/src/cloudcmd/bin/cloudcmd.js"]
|
||||
ENTRYPOINT ["/usr/local/share/cloudcmd/bin/cloudcmd.js"]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue