forked from zoffline/zwift-offline
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
16 lines (12 loc) · 710 Bytes
/
Dockerfile
File metadata and controls
16 lines (12 loc) · 710 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
FROM httpd:2.4
MAINTAINER zoffline <zoffline@mailinator.com>
RUN apt-get update && apt-get install -y python-dev python-flask libapache2-mod-wsgi python-pip protobuf-compiler git
RUN pip install --upgrade six
RUN pip install protobuf protobuf_to_dict stravalib
RUN ln -s /usr/lib/apache2/modules/mod_wsgi.so /usr/local/apache2/modules/
RUN git clone --depth 1 https://github.com/zoffline/zoffline /usr/local/apache2/htdocs/zwift-offline
RUN cd /usr/local/apache2/htdocs/zwift-offline/protobuf && make
RUN chown -R www-data.www-data /usr/local/apache2/htdocs/zwift-offline
COPY apache/docker-httpd.conf /usr/local/apache2/conf/httpd.conf
EXPOSE 443 80
VOLUME /usr/local/apache2/htdocs/zwift-offline/storage