darkfire514 commited on
Commit
ed010cf
·
verified ·
1 Parent(s): 50b9350

Upload Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +5 -12
Dockerfile CHANGED
@@ -39,16 +39,10 @@ RUN wget https://github.com/oauth2-proxy/oauth2-proxy/releases/download/v7.6.0/o
39
  && chmod +x /usr/bin/oauth2-proxy \
40
  && rm -rf oauth2-proxy-v7.6.0.linux-amd64*
41
 
42
- # Install Emscripten (EMSDK)
43
- WORKDIR /opt
44
- RUN git clone https://github.com/emscripten-core/emsdk.git
45
- RUN cd emsdk && \
46
- ./emsdk install latest && \
47
- ./emsdk activate latest && \
48
- chmod -R 777 /opt/emsdk
49
-
50
- # Add Emscripten to PATH for all users
51
- ENV PATH="/opt/emsdk:/opt/emsdk/upstream/emscripten:${PATH}"
52
 
53
  # Create a non-root user 'user' (UID 1000)
54
  RUN useradd -m -u 1000 user && \
@@ -69,9 +63,8 @@ USER user
69
  COPY --chown=user:user nginx.conf /etc/nginx/nginx.conf
70
  COPY --chown=user:user oauth2-proxy.cfg .
71
  COPY --chown=user:user start.sh .
72
- COPY --chown=user:user build_wasm.sh .
73
 
74
- RUN chmod +x start.sh build_wasm.sh
75
 
76
  # Expose port 7860 (Standard for Hugging Face Spaces)
77
  EXPOSE 7860
 
39
  && chmod +x /usr/bin/oauth2-proxy \
40
  && rm -rf oauth2-proxy-v7.6.0.linux-amd64*
41
 
42
+ # Install Node.js and OpenClaw
43
+ RUN curl -fsSL https://deb.nodesource.com/setup_22.x | bash - && \
44
+ apt-get install -y nodejs && \
45
+ npm install -g openclaw@latest
 
 
 
 
 
 
46
 
47
  # Create a non-root user 'user' (UID 1000)
48
  RUN useradd -m -u 1000 user && \
 
63
  COPY --chown=user:user nginx.conf /etc/nginx/nginx.conf
64
  COPY --chown=user:user oauth2-proxy.cfg .
65
  COPY --chown=user:user start.sh .
 
66
 
67
+ RUN chmod +x start.sh
68
 
69
  # Expose port 7860 (Standard for Hugging Face Spaces)
70
  EXPOSE 7860