server0137544 / Dockerfile
rkservers's picture
Update Dockerfile
febcee8 verified
raw
history blame contribute delete
961 Bytes
FROM python:3.10
WORKDIR /root
RUN apt-get update && apt-get install -y sudo git curl
RUN mkdir -p /root/.local /root/.cache/pip
RUN chmod -R 777 /root
ENV PATH="/root/bin:$PATH"
ENV PYTHONUSERBASE=/root
ENV PIP_CACHE_DIR=/root/.cache/pip
RUN curl -fsSL https://deb.nodesource.com/setup_20.x | bash -
RUN apt-get install -y nodejs
RUN npm install -g npm@latest
RUN mkdir -p /root/.npm-global /root/.npm-global/.cache /root/.config
RUN chmod -R 777 /root
ENV NPM_CONFIG_PREFIX="/root/.npm-global"
ENV NPM_CONFIG_CACHE="/root/.npm-global/.cache"
ENV PATH="/root/.npm-global/bin:$PATH"
RUN mkdir -p /app/node_modules
RUN chmod -R 777 /app/node_modules
RUN mkdir -p /app && rm -rf /app/*
RUN git clone https://github.com/ReirLair/reikerpy.git /app
WORKDIR /app
RUN pip install --upgrade pip
RUN pip install --no-cache-dir --root-user-action=ignore -r requirements.txt
RUN chmod -R 777 /app
EXPOSE 7860
CMD ["python", "server.py"]