Spaces:
Sleeping
Sleeping
Create Dockerfile
Browse files- Dockerfile +20 -0
Dockerfile
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
FROM python:3.11
|
| 2 |
+
|
| 3 |
+
RUN mkdir /public
|
| 4 |
+
RUN chmod 777 /public
|
| 5 |
+
|
| 6 |
+
COPY --chown=1000 ./public /public
|
| 7 |
+
|
| 8 |
+
RUN chmod 777 -R /public
|
| 9 |
+
ENV HOME=/public
|
| 10 |
+
|
| 11 |
+
RUN chmod 777 -R /public
|
| 12 |
+
RUN apt-get update
|
| 13 |
+
RUN apt-get install wget curl zip nodejs npm -y
|
| 14 |
+
RUN wget https://raw.githubusercontent.com/coder/code-server/refs/heads/main/install.sh
|
| 15 |
+
RUN bash install.sh
|
| 16 |
+
RUN chmod 777 -R /public
|
| 17 |
+
RUN chmod 777 ./usr/bin/code-server
|
| 18 |
+
EXPOSE 5000
|
| 19 |
+
|
| 20 |
+
CMD ./usr/bin/code-server --bind-addr 0.0.0.0 --port 5000 --auth none
|