mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-22 18:29:26 +00:00
30 lines
733 B
Text
30 lines
733 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.com/install | bash && \
|
|
~/.bun/bin/bun i --production --no-save && \
|
|
PATH=$PATH:~/.bun/bin bun i gritty --no-save && \
|
|
~/.bun/bin/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.mjs"]
|
|
|