-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
25 lines (16 loc) · 910 Bytes
/
Dockerfile
File metadata and controls
25 lines (16 loc) · 910 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
# A basic apache server. To use either add or bind mount content under /var/www
FROM ubuntu:16.04
MAINTAINER Tom Scofield version: 0.1
RUN apt-get update && apt-get install -y apache2 git ruby ruby-dev bundler && apt-get clean && rm -rf /var/lib/apt/lists/*
RUN mkdir -p /usr/local/bin && cd /usr/local/bin && git clone https://github.com/yvangodard/ical-to-google-calendar.git
# Install icalsync needed for ical-to-google-calendar
RUN mkdir -p /usr/local/bin && cd /usr/local/bin && git clone https://github.com/yvangodard/icalsync.git
RUN cd /usr/local/bin/icalsync && bundle install
RUN cd /usr/local/bin/icalsync && /usr/local/bin/icalsync/icalsync -h
#Remove git, we only needed it for setup
RUN apt-get -y remove git && apt-get -y autoremove
ENV APACHE_RUN_USER www-data
ENV APACHE_RUN_GROUP www-data
ENV APACHE_LOG_DIR /var/log/apache2
EXPOSE 80
CMD ["/usr/sbin/apache2", "-D", "FOREGROUND"]