File size: 925 Bytes
c42c510
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
# Use the official Alpine as a base image
FROM debian:12

# Set environment variables for Python and NVM installation
ENV PYTHON_VERSION=3.10.9
ENV NODE_VERSION=20.0.0
ENV NVM_DIR=/root/.nvm

# Install dependencies
RUN apt update -y && \
    apt install -y  htop wget aria2 curl git gcc \
    && rm -rf /var/cache/apt


# Install NVM and Node.js
RUN mkdir -p $NVM_DIR
RUN curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.2/install.sh | bash
RUN . $NVM_DIR/nvm.sh && \
    nvm install $NODE_VERSION && \
    nvm use $NODE_VERSION && \
    nvm alias default $NODE_VERSION

# Add NVM to PATH
ENV PATH=$NVM_DIR/versions/node/v$NODE_VERSION/bin:$PATH

# Verify installations
# RUN python3 --version
# RUN node --version
# RUN npm --version



# Copy application code to the container
COPY ./ /root/app
RUN chmod -R 777 /root

# Set working directory
WORKDIR /root/app
# Default command
CMD ["bash","startinhgspace.sh"]