forked from tomich/craig
-
Notifications
You must be signed in to change notification settings - Fork 2
/
dockerfile
47 lines (38 loc) · 1011 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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
# Use an official Ubuntu base image
FROM ubuntu:22.04
# Remove interactive prompts
ENV DEBIAN_FRONTEND=noninteractive
# Install all required dependencies in advance
RUN apt-get update && \
apt-get -y upgrade && \
apt-get install -y \
# cook
make inkscape ffmpeg flac fdkaac vorbis-tools opus-tools zip unzip \
wget \
# redis
lsb-release curl gpg \
ca-certificates redis redis-server redis-tools \
# web
postgresql \
# install
sed coreutils build-essential \
# Other dependencies
sudo git && \
# Cleanup
apt-get -y autoremove
WORKDIR /app
# Copy all changes, particularly environment variables with discord API keys
COPY . .
# Run first-time setup for faster restarts
RUN ./install.sh
# Expose app port
EXPOSE 3000
# Expose API port
EXPOSE 5029
# Start Craig
CMD ["sh", "-c", "/app/start.sh"]
# Usage:
# Build:
# docker build -t craig .
# Run:
# docker run -i -p 3000:3000 -p 5029:5029 craig