Spaces:
Paused
Paused
Update Dockerfile
Browse files- Dockerfile +29 -2
Dockerfile
CHANGED
|
@@ -1,5 +1,32 @@
|
|
| 1 |
FROM finab/bark-server:latest
|
| 2 |
|
| 3 |
-
RUN env
|
| 4 |
|
| 5 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
FROM finab/bark-server:latest
|
| 2 |
|
|
|
|
| 3 |
|
| 4 |
+
LABEL maintainer="mritd <mritd@linux.com>"
|
| 5 |
+
|
| 6 |
+
# set up nsswitch.conf for Go's "netgo" implementation
|
| 7 |
+
# - https://github.com/golang/go/blob/go1.9.1/src/net/conf.go#L194-L275
|
| 8 |
+
# - docker run --rm debian:stretch grep '^hosts:' /etc/nsswitch.conf
|
| 9 |
+
RUN echo 'hosts: files dns' > /etc/nsswitch.conf
|
| 10 |
+
|
| 11 |
+
# default timezon
|
| 12 |
+
# override it with `--build-arg TIMEZONE=xxxx`
|
| 13 |
+
ARG TIMEZONE=Asia/Shanghai
|
| 14 |
+
|
| 15 |
+
ENV TZ=${TIMEZONE}
|
| 16 |
+
|
| 17 |
+
RUN set -ex \
|
| 18 |
+
&& apk upgrade \
|
| 19 |
+
&& apk add --no-cache bash ca-certificates tzdata \
|
| 20 |
+
&& ln -sf /usr/share/zoneinfo/${TZ} /etc/localtime \
|
| 21 |
+
&& echo ${TZ} > /etc/timezone
|
| 22 |
+
|
| 23 |
+
COPY --from=builder /go/bin/bark-server /usr/local/bin/bark-server
|
| 24 |
+
COPY --from=builder /go/src/github.com/finb/bark-server/deploy/entrypoint.sh /entrypoint.sh
|
| 25 |
+
|
| 26 |
+
VOLUME /data
|
| 27 |
+
|
| 28 |
+
EXPOSE 8080
|
| 29 |
+
|
| 30 |
+
ENTRYPOINT ["/entrypoint.sh"]
|
| 31 |
+
|
| 32 |
+
CMD ["bark-server"]
|