devusman/indonesian
0
1# Use a stable and small Node.js image2FROM node:18-alpine3 4# Install Git and Git LFS, which are required to clone from the Hugging Face Hub5RUN apk add --no-cache git git-lfs6 7# Set the working directory inside the container8WORKDIR /app9 10# Initialize Git LFS in the container environment11RUN git lfs install12 13# --- IMPORTANT STEP: Using your specified multi-step logic ---14 15# 1. Clone the repository. This creates a folder named 'waliyan' inside /app16RUN git clone --depth 1 https://huggingface.co/datasets/devusman/waliyan17 18# 2. Move the data folder from inside 'waliyan' up to the app's root folder19# This is the equivalent of 'copy' and 'paste'20RUN mv waliyan/data .21 22# 3. Clean up by removing the now-empty 'waliyan' folder23RUN rm -rf waliyan24 25# --- Data is now correctly at /app/data ---26 27# Copy package files and install dependencies28COPY package.json package-lock.json* ./29RUN npm install30 31# Copy the rest of your application code32COPY . .33 34# Expose the port that Hugging Face Spaces expects.35EXPOSE 786036 37# The command to start your Express server38CMD ["node", "index.js"]