|
@ -12,12 +12,21 @@ RUN apk add --no-cache -t build-deps git gcc musl-dev go \ |
|
|
# Run go-neb |
|
|
# Run go-neb |
|
|
FROM alpine:3.7 |
|
|
FROM alpine:3.7 |
|
|
|
|
|
|
|
|
ENV BIND_ADDRESS=:4050 DATABASE_TYPE=sqlite3 DATABASE_URL=/data/go-neb.db?_busy_timeout=5000 |
|
|
|
|
|
|
|
|
ENV BIND_ADDRESS=:4050 \ |
|
|
|
|
|
DATABASE_TYPE=sqlite3 \ |
|
|
|
|
|
DATABASE_URL=/data/go-neb.db?_busy_timeout=5000 \ |
|
|
|
|
|
UID=1337 \ |
|
|
|
|
|
GID=1337 |
|
|
|
|
|
|
|
|
COPY --from=builder /tmp/go-neb/bin/go-neb /go-neb |
|
|
|
|
|
RUN apk add --no-cache ca-certificates |
|
|
|
|
|
|
|
|
COPY --from=builder /tmp/go-neb/bin/go-neb /usr/local/bin/go-neb |
|
|
|
|
|
RUN apk add --no-cache \ |
|
|
|
|
|
ca-certificates \ |
|
|
|
|
|
su-exec \ |
|
|
|
|
|
s6 |
|
|
|
|
|
|
|
|
VOLUME /data |
|
|
VOLUME /data |
|
|
EXPOSE 4050 |
|
|
EXPOSE 4050 |
|
|
|
|
|
|
|
|
ENTRYPOINT ["/go-neb"] |
|
|
|
|
|
|
|
|
COPY docker/root / |
|
|
|
|
|
|
|
|
|
|
|
ENTRYPOINT ["/bin/s6-svscan", "/etc/s6.d/"] |