lora-studio / Dockerfile
enzostvs's picture
enzostvs HF Staff
update dockerfile
071a7ae
raw
history blame
758 Bytes
# Dockerfile
# Use an official Node.js runtime as the base image
FROM node:20-alpine
USER 1000
RUN apk update
# 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
# RUN apk add build-base gcompat udev chromium
# RUN apk add --no-cache ffmpeg
# 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"]