Added docker maintainer and minor refinement (#19)
This commit is contained in:
Родитель
96a7d10a6d
Коммит
f0775bbb08
|
@ -0,0 +1,3 @@
|
|||
*
|
||||
!docker
|
||||
!bin
|
|
@ -1,4 +1,6 @@
|
|||
FROM alpine:edge
|
||||
MAINTAINER Thomas Boerger <thomas@webhippie.de>
|
||||
|
||||
EXPOSE 8000
|
||||
|
||||
RUN apk update && \
|
||||
|
|
|
@ -0,0 +1,20 @@
|
|||
FROM hypriot/rpi-alpine-scratch:edge
|
||||
MAINTAINER Thomas Boerger <thomas@webhippie.de>
|
||||
|
||||
EXPOSE 8000
|
||||
|
||||
RUN apk update && \
|
||||
apk add \
|
||||
ca-certificates \
|
||||
sqlite && \
|
||||
rm -rf \
|
||||
/var/cache/apk/*
|
||||
|
||||
ENV DATABASE_DRIVER=sqlite3
|
||||
ENV DATABASE_DATASOURCE=/var/lib/lgtm/lgtm.sqlite
|
||||
ENV GODEBUG=netdns=go
|
||||
|
||||
ENTRYPOINT ["/usr/bin/lgtm"]
|
||||
CMD ["server"]
|
||||
|
||||
ADD bin/lgtm /usr/bin/
|
Загрузка…
Ссылка в новой задаче