Download Dockerfile from cuvii/hello: direct link, hf CLI and curl.
- Browser
- Download file 522 Bytes
-
https://huggingface.co/datasets/cuvii/hello/resolve/main/Dockerfile
- Command line
-
hf download hf://datasets/cuvii/hello/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/datasets/cuvii/hello/resolve/main/Dockerfile
522 Bytes
| FROM node:16.17.0-alpine3.15 | |
| RUN apk add --no-cache libc6-compat | |
| RUN npm i -g npm | |
| EXPOSE 3000 | |
| ENV PORT 3000 | |
| ENV NODE_ENV production | |
| WORKDIR /home/nextjs/app | |
| COPY package.json . | |
| COPY package-lock.json . | |
| RUN npm install --omit=optional | |
| RUN npx browserslist@latest --update-db | |
| RUN npx next telemetry disable | |
| # need to install linux specific swc builds | |
| RUN npm install -D @swc/cli @swc/core | |
| COPY . . | |
| RUN npm run build | |
| RUN addgroup -g 1001 -S nodejs | |
| RUN adduser -S nextjs -u 1001 | |
| USER nextjs | |
| CMD [ "npm", "start" ] | |