Download Dockerfile from ken4/apis: direct link, hf CLI and curl.
- Browser
- Download file 978 Bytes
-
https://huggingface.co/spaces/ken4/apis/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/ken4/apis/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/ken4/apis/resolve/main/Dockerfile
978 Bytes
| FROM mcr.microsoft.com/playwright:v1.49.1-noble | |
| ENV PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD=1 \ | |
| TZ=Asia/Jakarta \ | |
| PORT=7860 | |
| WORKDIR /app | |
| RUN apt-get update \ | |
| && apt-get install -y --no-install-recommends ffmpeg fontconfig fonts-noto-color-emoji \ | |
| && rm -rf /var/lib/apt/lists/* | |
| RUN mkdir -p /usr/local/share/fonts \ | |
| && curl --fail --silent --show-error --location --retry 3 \ | |
| --output /usr/local/share/fonts/AppleColorEmoji.ttf \ | |
| https://github.com/samuelngs/apple-emoji-ttf/releases/download/v18.4/AppleColorEmoji.ttf \ | |
| && echo 'a4fd077bd11437b4940d8cf08f4084e1edfd4ae359f92573ec576652f885eabd /usr/local/share/fonts/AppleColorEmoji.ttf' | sha256sum --check \ | |
| && fc-cache -f /usr/local/share/fonts \ | |
| && fc-match -f '%{family}\n' 'Apple Color Emoji' | grep -Fx 'Apple Color Emoji' | |
| COPY package.json yarn.lock ./ | |
| RUN yarn install --frozen-lockfile --production | |
| COPY app.js ./ | |
| COPY site/ ./site/ | |
| EXPOSE 7860 | |
| CMD ["node", "app.js"] | |