-
Notifications
You must be signed in to change notification settings - Fork 42
/
Dockerfile
36 lines (28 loc) · 979 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
#vim:ft=Dockerfile
FROM debian:testing
RUN DEBIAN_FRONTEND=noninteractive apt-get update && \
apt-get install -y --no-install-recommends \
jekyll ruby ruby-pg postgresql-client nginx supervisor git golang-go && \
rm -rf /var/lib/apt/lists/* && \
apt-get clean
# TODO: install as debian package once available
RUN gem install icalendar
ENV PGUSER=postgres PGHOST=postgres
# tell jekyll to use utf-8 (website build fails otherwise)
ENV LC_ALL=C.UTF-8
ENV GOPATH=/tmp/go
# for easier interactive usage
ENV PATH="/tmp/go/bin:${PATH}"
# needed for hook service
ENV WEBHOOK_SECRET=geheim
WORKDIR /tmp/go/src/github.com/nnev/website/
COPY . .
ADD build_entrypoint.sh /build_entrypoint.sh
ADD entrypoint.sh /entrypoint.sh
ADD build_website.sh /build_website.sh
ADD nnev-website-nginx.conf /etc/nginx/sites-available/default
ADD nnev-website-supervisor.conf /etc/supervisor/conf.d/supervisord.conf
RUN go get -v ./...
RUN go install -v ./...
EXPOSE 80
CMD ["/entrypoint.sh"]