-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
47 lines (36 loc) · 1.25 KB
/
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
FROM node:14-buster
MAINTAINER Sagnik Sasmal, <[email protected]>
# Ignore APT warnings about not having a TTY
ENV DEBIAN_FRONTEND noninteractive
# Install OS deps
RUN apt-get update \
&& apt-get dist-upgrade -y \
&& apt-get autoremove -y \
&& apt-get autoclean \
&& apt-get -y install dirmngr curl software-properties-common locales git cmake \
&& apt-get -y install autoconf automake g++ libtool \
&& apt-get -y install ffmpeg libmp3lame-dev x264 \
&& apt-get -y install sqlite3 libsqlite3-dev \
&& useradd -m -d /home/container container
# Ensure UTF-8
RUN sed -i 's/^# *\(en_US.UTF-8\)/\1/' /etc/locale.gen \
&& locale-gen
ENV LANG en_US.UTF-8
ENV LC_ALL en_US.UTF-8
USER container
ENV USER=container HOME=/home/container
WORKDIR /home/container
ENV NPM_CONFIG_PREFIX=/home/container/.npm-global
# Install NodeJS Dependencies
RUN npm install -g discord.js \
&& npm install @discordjs/opus \
&& npm install opusscript \
&& npm install bufferutil \
&& npm install libsodium-wrappers \
&& npm install sqlite3 \
&& npm install better-sqlite3 \
&& npm install utf-8-validate \
&& npm install ffmpeg \
&& npm install sodium
COPY ./entrypoint.sh /entrypoint.sh
CMD ["/bin/bash", "/entrypoint.sh"]