Skip to content

Commit 44a4f48

Browse files
committed
fix(Docker)
1 parent 7773e52 commit 44a4f48

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

Dockerfile

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ LABEL org.opencontainers.image.title="text0wnz"
66
LABEL org.opencontainers.image.authors="xero <x@xero.style>"
77
LABEL org.opencontainers.image.description="Text-mode art editor for ANSI, ASCII, XBIN, NFO, & TXT files"
88
LABEL org.opencontainers.image.source="https://github.com/xero/text0wnz"
9-
LABEL org.opencontainers.image.created="2025-10-17"
9+
LABEL org.opencontainers.image.created="2025-10-27"
1010

1111
# Override me!
1212
ENV DOMAIN="localhost"
@@ -31,8 +31,10 @@ COPY --from=bun /usr/local/bin/bun /usr/local/bin/bun
3131
WORKDIR /app
3232
COPY . .
3333
RUN bun i && bun bake
34+
# Take out the bun and let it cool
35+
RUN rm -rf ./node_modules && bun i --production
3436

35-
# Cleanup
37+
# Clean up the kitchen
3638
RUN rm -rf \
3739
.env \
3840
.git \
@@ -53,14 +55,11 @@ RUN rm -rf \
5355
tests \
5456
/var/cache/apk/*
5557

56-
# Server only deps
57-
RUN bun i --production
58-
5958
# Create unprivileged user
6059
RUN addgroup -S textart && \
6160
adduser -S -G textart -h /app textart
6261

63-
# Create directory structure for our user
62+
# Create directory structure
6463
RUN mkdir -p /etc/caddy /var/log /var/lib/caddy /home/textart/.local/share && \
6564
chown -R textart:textart /app /var/log /var/lib/caddy /etc/caddy /home/textart && \
6665
chmod -R 755 /app

0 commit comments

Comments
 (0)