lora-studio / Dockerfile
enzostvs's picture
enzostvs HF staff
add metadata auto generated on first load of the model
37a5c70
raw
history blame
982 Bytes
# Dockerfile
# Use an official Node.js runtime as the base image
FROM node:18
USER 1000
# Set the working directory in the container
WORKDIR /usr/src/app
# Copy package.json and package-lock.json to the container
COPY --chown=1000 package.json package-lock.json ./
# Install dependencies
RUN npm install
# Set the environment variable for Puppeteer's download path.
ENV PUPPETEER_SKIP_CHROMIUM_DOWNLOAD true
ENV PUPPETEER_EXECUTABLE_PATH=/usr/bin/chromium
ENV PUPPETEER_DOWNLOAD_PATH=/root/.cache/puppeteer
ENV PUPPETEER_CACHE_DIR=/root/.cache/puppeteer
# Install Chromium and fonts
RUN apk add --update chromium \
ttf-freefont
# Copy the rest of the application files to the container
COPY --chown=1000 . .
RUN chmod +x entrypoint.sh
# Expose the application port (assuming your app runs on port 3000)
EXPOSE 3000
# Create symlink
# RUN mkdir -p ./static/data && ln -s /data/uploads ./static/data/uploads
# Start the application
ENTRYPOINT ["/usr/src/app/entrypoint.sh"]