Download Dockerfile from ghost613/math-quiz: direct link, hf CLI and curl.
- Browser
- Download file 272 Bytes
-
https://huggingface.co/spaces/ghost613/math-quiz/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/ghost613/math-quiz/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/ghost613/math-quiz/resolve/main/Dockerfile
272 Bytes
| # Use Node.js image | |
| FROM node:18-alpine | |
| # Create app directory | |
| WORKDIR /app | |
| # Install app dependencies | |
| COPY package*.json ./ | |
| RUN npm install | |
| # Bundle app source | |
| COPY . . | |
| # Build the app | |
| RUN npm run build | |
| # Expose port | |
| EXPOSE 3000 | |
| # Start the app | |
| CMD ["npm", "start"] |