free_get_tts / Dockerfile
trretretret's picture
project
c42c510
raw
history blame contribute delete
No virus
925 Bytes
# 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"]