initial commit

This commit is contained in:
Sebastian Hugentobler 2017-09-04 16:00:44 +02:00
commit f6b4c20e4a
14 changed files with 160 additions and 0 deletions

22
Dockerfile Normal file
View file

@ -0,0 +1,22 @@
FROM golang:alpine as builder
RUN apk --no-cache add git
RUN go get -v -u github.com/xenolf/lego
FROM registry.gitlab.com/thallian/docker-confd-env:master
COPY --from=builder /go/bin/lego /bin/lego
ENV PGDATA /var/lib/postgresql/data
RUN apk add --no-cache postgresql postgresql-contrib ca-certificates
RUN mkdir -p /run/postgresql && mkdir -p $PGDATA
RUN chown -R postgres /run/postgresql && chown -R postgres $PGDATA
RUN chmod 775 /run/postgresql
ADD /rootfs /
VOLUME /var/lib/postgresql/data
EXPOSE 5432