-
Notifications
You must be signed in to change notification settings - Fork 3
/
Dockerfile
32 lines (24 loc) · 998 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
FROM oven/bun:1.1.21
# Make puppeteer skip chromium downloading
ENV PUPPETEER_SKIP_CHROMIUM_DOWNLOAD true
# Install latest chromium stable
RUN apt-get update && apt-get install curl gnupg -y \
&& curl --location --silent https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add - \
&& sh -c 'echo "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google.list' \
&& apt-get update \
&& apt-get install google-chrome-stable -y --no-install-recommends \
&& rm -rf /var/lib/apt/lists/*
RUN mkdir -p /usr/src/main-discord-bot
WORKDIR /usr/src/main-discord-bot
RUN which google-chrome-stable
# Install fonts
RUN apt-get update && apt-get install -y fontconfig
COPY ./assets/fonts /usr/local/share/fonts
RUN fc-cache -f -v
# Setup npm
COPY package.json /usr/src/main-discord-bot
COPY bun.lockb /usr/src/main-discord-bot
COPY .npmrc /usr/src/main-discord-bot
COPY . /usr/src/main-discord-bot
RUN bun i
CMD ["bun", "run", "deploy"]