# Use the image from GitHub Container Registry | |
FROM ghcr.io/gngpp/ninja:latest | |
# User Setup (if needed) | |
RUN useradd -m -u 1001 user | |
# Set environment variables | |
ENV HOME=/home/user \ | |
PATH=/home/user/.local/bin:$PATH \ | |
PYTHONUNBUFFERED=1 | |
# Set the working directory in the container to the application directory | |
WORKDIR /code | |
# Copy Python requirements file | |
COPY requirements.txt . | |
# Install Python dependencies | |
RUN pip install --no-cache-dir -r requirements.txt | |
# Copy your application files into the container | |
COPY . /code | |
# Expose any ports your application might use (if applicable) | |
EXPOSE 7860 | |
# Specify the command to run your Node.js application | |
CMD ["node", "server.js"] | |