aboutsummaryrefslogtreecommitdiffstats
path: root/Dockerfile
diff options
context:
space:
mode:
authorterminaldweller <devi@terminaldweller.com>2024-05-06 17:38:20 +0000
committerterminaldweller <devi@terminaldweller.com>2024-05-06 17:38:20 +0000
commita7abf29115f8c3a279c447487687296c7610ee96 (patch)
tree6debdd2ab81c08f9dc32fefc892c06512f775954 /Dockerfile
parentgemini is finally fixed (diff)
downloadmilla-a7abf29115f8c3a279c447487687296c7610ee96.tar.gz
milla-a7abf29115f8c3a279c447487687296c7610ee96.zip
initial version of the prettier service
Diffstat (limited to '')
-rw-r--r--Dockerfile13
1 files changed, 10 insertions, 3 deletions
diff --git a/Dockerfile b/Dockerfile
index 416a270..25f9dd3 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -1,5 +1,6 @@
FROM alpine:3.19 as builder
-RUN apk update && apk upgrade && \
+RUN apk update && \
+ apk upgrade && \
apk add go git
WORKDIR /milla
COPY go.sum go.mod /milla/
@@ -8,5 +9,11 @@ COPY *.go /milla/
RUN go build
FROM alpine:3.19
-COPY --from=builder /milla/milla /milla/
-ENTRYPOINT ["/milla/milla"]
+ENV HOME /home/user
+RUN set -eux; \
+ adduser -u 1001 -D -h "$HOME" user; \
+ mkdir "$HOME/.irssi"; \
+ chown -R user:user "$HOME"
+COPY --from=builder /milla/milla "$HOME/milla"
+RUN chown user:user "$HOME/milla"
+ENTRYPOINT ["home/user/milla"]