amk-pos-backend / Dockerfile
openhands
fix: Update Dockerfile and README for HF deployment
fe58cce
Raw
History Blame Contribute Delete
351 Bytes
FROM node:20-alpine
WORKDIR /app
# Copy package files
COPY package*.json ./
# Install dependencies
RUN npm install --production
# Copy source and store
COPY src ./src
COPY store.js .
# Create data directory
RUN mkdir -p data
# Expose port - HuggingFace expects the app port
EXPOSE 3001
ENV PORT=3001
# Start server
CMD ["node", "src/index.js"]