| FROM python:3.11 | |
| RUN mkdir /public | |
| RUN chmod 777 /public | |
| COPY --chown=1000 ./public /public | |
| RUN chmod 777 -R /public | |
| ENV HOME=/public | |
| RUN chmod 777 -R /public | |
| RUN apt-get update | |
| RUN apt-get install wget curl zip nodejs npm -y | |
| RUN wget https://raw.githubusercontent.com/coder/code-server/refs/heads/main/install.sh | |
| RUN bash install.sh | |
| RUN chmod 777 -R /public | |
| RUN chmod 777 ./usr/bin/code-server | |
| EXPOSE 5000 | |
| CMD ./usr/bin/code-server --bind-addr 0.0.0.0 --port 5000 --auth none |