Spaces:
Running
Running
File size: 1,625 Bytes
3311774 5d3fca6 3311774 8ad3976 3311774 6a44055 3311774 | 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 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 | FROM debian:stable-slim AS run
LABEL org.opencontainers.image.title="Exocore IDE"
LABEL org.opencontainers.image.description="Browser-based IDE — full stack, any language"
LABEL org.opencontainers.image.version="6.1.1"
ENV PORT=7860 \
DENO_DIR=/tmp/deno
RUN apt-get update \
&& apt-get install -y \
ca-certificates curl tini procps \
bash coreutils \
git unzip zip \
python3 python3-pip python3-venv \
sudo vim nano htop \
build-essential gcc g++ make \
openssh-client \
wget net-tools \
nodejs npm \
&& rm -rf /var/lib/apt/lists/* \
&& rm -rf /var/cache/apt/archives/*
WORKDIR /app
RUN groupadd --system --gid 1001 exocore \
&& useradd --system --uid 1001 --gid exocore --create-home --shell /bin/bash exocore \
&& echo "exocore ALL=(ALL) NOPASSWD:ALL" >> /etc/sudoers.d/exocore \
&& chmod 440 /etc/sudoers.d/exocore
ADD --chown=exocore:exocore https://github.com/Exocore-Organization/exocore-web/raw/main/exocore-ide /app/exocore-ide
RUN chmod +x /app/exocore-ide \
&& npm init -y && npm install node-pty@1.1.0 2>&1 | tail -5
RUN mkdir -p \
/app/projects \
/app/projects_archive \
/app/uploads/temp \
/app/uploads/avatars \
&& chown -R exocore:exocore /app
VOLUME ["/app/projects", "/app/uploads"]
RUN mkdir -p /tmp/exo-cache && chown exocore:exocore /tmp/exo-cache
USER exocore
EXPOSE 7860
HEALTHCHECK --interval=30s --timeout=10s --start-period=25s --retries=3 \
CMD curl -f http://localhost:${PORT}/exocore/api/health || exit 1
ENTRYPOINT ["/usr/bin/tini", "--"]
CMD ["./exocore-ide"]
|