mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-07-18 00:47:01 +00:00
31 lines
785 B
Text
31 lines
785 B
Text
FROM node:alpine
|
|
LABEL maintainer="Coderaiser"
|
|
LABEL org.opencontainers.image.source="https://github.com/coderaiser/cloudcmd"
|
|
|
|
RUN mkdir -p /usr/src/app
|
|
WORKDIR /usr/src/app
|
|
|
|
COPY package.json /usr/src/app/
|
|
|
|
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 i --production --no-save && \
|
|
bun i gritty --production --no-save && \
|
|
bun pm cache rm && \
|
|
apk del make g++ python3 && \
|
|
rm -rf /usr/include /tmp/* /var/cache/apk/*
|
|
|
|
COPY . /usr/src/app
|
|
|
|
WORKDIR /
|
|
ENV cloudcmd_terminal true
|
|
ENV cloudcmd_terminal_path gritty
|
|
ENV cloudcmd_open false
|
|
|
|
EXPOSE 8000
|
|
|
|
ENTRYPOINT ["/usr/src/app/bin/cloudcmd.js"]
|
|
|