apis / Dockerfile
ken4's picture
Update Dockerfile
f1b1dcb verified
raw
history blame contribute delete
787 Bytes
FROM mcr.microsoft.com/playwright:focal
ENV PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD=1
ENV TZ=Asia/Jakarta
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
WORKDIR /app
COPY brat-ip.tar.gz .
RUN tar -xzf brat-ip.tar.gz && rm brat-ip.tar.gz
RUN npm install
RUN npx playwright install --with-deps
RUN apt-get update && apt-get install -y \
wget \
fontconfig \
fonts-noto-color-emoji \
--no-install-recommends && \
rm -rf /var/lib/apt/lists/*
RUN mkdir -p /usr/share/fonts/AppleColorEmoji && \
wget -O /usr/share/fonts/AppleColorEmoji/AppleColorEmoji.ttf \
https://github.com/samuelngs/apple-emoji-linux/releases/latest/download/AppleColorEmoji.ttf && \
fc-cache
# Fix permission (cukup chmod aja)
RUN chmod -R 755 /app
CMD ["node", "app.js"]