Glif-Lora-Autocaption / Dockerfile
saq1b's picture
remove node_modules copy from Dockerfile to streamline image build
3df8b88
raw
history blame contribute delete
563 Bytes
FROM node:22-slim
# Install basic dependencies
RUN apt-get update && apt-get install -y --no-install-recommends curl
# Set the working directory
WORKDIR /app
# Copy package.json and package-lock.json first for better caching
COPY package*.json ./
# Install dependencies
RUN npm install
# Copy the current directory contents into the container
COPY . .
# Set environment variables
ENV NODE_ENV=production \
PORT=7860 \
HOST=0.0.0.0
# Expose the port
EXPOSE 7860
RUN chmod 777 /app/node_modules
# Command to run the application
CMD ["npm", "start"]