Download Dockerfile from dimag69/fadl: direct link, hf CLI and curl.
- Browser
- Download file 1.4 kB
-
https://huggingface.co/spaces/dimag69/fadl/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/dimag69/fadl/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/dimag69/fadl/resolve/main/Dockerfile
1.4 kB
| FROM node:20@sha256:cb7cd40ba6483f37f791e1aace576df449fc5f75332c19ff59e2c6064797160e | |
| # Install latest chrome dev package and fonts to support major charsets (Chinese, Japanese, Arabic, Hebrew, Thai and a few others) | |
| # Note: this installs the necessary libs to make the bundled version of Chrome that Puppeteer | |
| # installs, work. | |
| RUN apt-get update \ | |
| && apt-get install -y wget gnupg \ | |
| && wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | gpg --dearmor -o /usr/share/keyrings/googlechrome-linux-keyring.gpg \ | |
| && sh -c 'echo "deb [arch=amd64 signed-by=/usr/share/keyrings/googlechrome-linux-keyring.gpg] http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google.list' \ | |
| && apt-get update \ | |
| && apt-get install -y google-chrome-stable fonts-ipafont-gothic fonts-wqy-zenhei fonts-thai-tlwg fonts-khmeros fonts-kacst fonts-freefont-ttf libxss1 dbus dbus-x11 \ | |
| --no-install-recommends \ | |
| && service dbus start \ | |
| && rm -rf /var/lib/apt/lists/* \ | |
| && groupadd -r pptruser && useradd -rm -g pptruser -G audio,video pptruser | |
| # set working directory | |
| WORKDIR /app | |
| # copy package.json and yarn.lock files to the container | |
| COPY package.json yarn.lock ./ | |
| # install dependencies | |
| RUN yarn install | |
| # copy application files to the container | |
| COPY . . | |
| # expose the port 3000 | |
| EXPOSE 3000 | |
| # start the application | |
| CMD ["yarn", "dev"] |