File size: 693 Bytes
7cd4564 16f0bfc 7cd4564 16f0bfc 7cd4564 16f0bfc 7cd4564 16f0bfc 7cd4564 |
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 |
# 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"]
|