-
-
Notifications
You must be signed in to change notification settings - Fork 266
Expand file tree
/
Copy pathDockerfile.alpine
More file actions
34 lines (24 loc) · 817 Bytes
/
Copy pathDockerfile.alpine
File metadata and controls
34 lines (24 loc) · 817 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
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/
RUN apk update && \
apk add --no-cache curl bash make g++ python3 && \
curl -fsSL https://bun.sh/install | bash && \
ln -s ~/.bun/bin/bun /usr/local/bin/bun && \
chmod +x /usr/local/bin/bun && \
bun r gritty --omit dev && \
bun i gritty --omit dev && \
bun pm cache rm && \
apk del make g++ python3 && \
rm -rf /usr/include /tmp/* /var/cache/apk/*
COPY . /usr/src/cloudcmd
WORKDIR /
ENV cloudcmd_terminal=true
ENV cloudcmd_terminal_path=gritty
ENV cloudcmd_open=false
ENV cloudcmd_vim=true
EXPOSE 8000
ENTRYPOINT ["/usr/src/cloudcmd/bin/cloudcmd.js"]