Download client/Dockerfile from linguabot/TransHub: direct link, hf CLI and curl.
- Browser
- Download file 535 Bytes
-
https://huggingface.co/spaces/linguabot/TransHub/resolve/main/client/Dockerfile
- Command line
-
hf download hf://spaces/linguabot/TransHub/client/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/linguabot/TransHub/resolve/main/client/Dockerfile
535 Bytes
| # Build stage | |
| FROM node:18-alpine AS build | |
| # Set working directory | |
| WORKDIR /app | |
| # Copy package files | |
| COPY client/package*.json ./ | |
| # Install dependencies | |
| RUN npm ci | |
| # Copy source code | |
| COPY client/ ./ | |
| # Build the app | |
| RUN npm run build | |
| # Production stage | |
| FROM nginx:alpine | |
| # Copy built app to nginx | |
| COPY --from=build /app/build /usr/share/nginx/html | |
| # Copy nginx configuration | |
| COPY nginx.conf /etc/nginx/nginx.conf | |
| # Expose port | |
| EXPOSE 80 | |
| # Start nginx | |
| CMD ["nginx", "-g", "daemon off;"] | |
| # rebuild trigger 2025-09-02T05:59:28Z | |