Skip to content

Commit b29cff5

Browse files
committed
dev: Update Dockerfile to include telemetry volume
1 parent 71a05cb commit b29cff5

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

Dockerfile

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,11 @@ RUN rm -rf /srv/ttn-lorawan/lorawan-webhook-templates/.git
1414

1515
FROM alpine:3.21
1616

17-
RUN addgroup -g 886 thethings && adduser -u 886 -S -G thethings thethings
17+
RUN addgroup -g 886 thethings && \
18+
adduser -u 886 -S -G thethings thethings && \
19+
mkdir -p /home/thethings && \
20+
chown thethings:thethings /home/thethings
21+
# RUN addgroup -g 886 thethings && adduser -u 886 -S -G thethings thethings
1822

1923
RUN apk --update --no-cache add ca-certificates curl
2024

@@ -41,4 +45,8 @@ ENV TTN_LW_HEALTHCHECK_URL=http://localhost:1885/healthz
4145

4246
HEALTHCHECK --interval=1m --timeout=5s CMD curl -f $TTN_LW_HEALTHCHECK_URL || exit 1
4347

48+
RUN mkdir /home/thethings/.cache
49+
50+
VOLUME ["/home/thethings/.cache"]
51+
4452
USER thethings:thethings

0 commit comments

Comments
 (0)