-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
34 lines (27 loc) · 773 Bytes
/
Dockerfile
File metadata and controls
34 lines (27 loc) · 773 Bytes
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
# Dockerfile for building a kegbot server
FROM ubuntu:14.04
MAINTAINER Dennis Coldwell <dennis.coldwell@gmail.com>
# take care of our Linux environment
RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -yq \
gcc \
openssh-server \
python-dev \
python-pip \
libjpeg-dev \
libmysqlclient-dev \
mysql-client \
mysql-server \
redis-server \
supervisor \
nginx \
--no-install-recommends
# Install kegbot
RUN pip install -U kegbot
# Copy over the kegbot run script & set executable bit
ADD run_kegbot /run_kegbot
RUN chmod 700 run_kegbot
# Add VOLUMEs to allow backup of databases/kegbot data
VOLUME ["/var/lib/mysql", "/var/lib/redis", "/kegbot-data"]
# Expose the port for the container
EXPOSE 8000
CMD ["./run_kegbot"]