Spaces:
Running
Running
File size: 430 Bytes
4d85a76 cdbf412 4d85a76 3809cb4 4d85a76 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 | FROM node:20-alpine
WORKDIR /app
# Install dependencies first (cached layer)
COPY package.json ./
RUN npm install --omit=dev
# Copy app files
COPY server.js ./
COPY public/ ./public/
COPY images/ ./images/
# HF Spaces requires port 7860
ENV PORT=7860
# HF Spaces mounts the persistent bucket (HTW-KI-Werkstatt/DiffMT-storage) at /data
ENV DATA_PATH=/data/results.json
EXPOSE 7860
RUN mkdir -p data
CMD ["node", "server.js"]
|