FROM node:18 | |
# Install git | |
RUN apt-get update && apt-get install -y git | |
# Clone the repository | |
RUN git clone https://github.com/lezzthanthree/SEKAI-Stories.git /app | |
WORKDIR /app | |
# Install dependencies | |
RUN npm install | |
# Build the project | |
RUN npm run build | |
# Install a simple static file server | |
RUN npm install -g serve | |
# Expose the port | |
EXPOSE 7860 | |
# Serve the static files | |
CMD ["serve", "-s", "dist", "-l", "7860"] |