Icons are now stored in data/icons alongside other data files. When built with embed_data tag, icons are embedded into the binary via embed.FS. Server serves icons from disk first (for hot-reload), falling back to embedded FS. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
22 lines
579 B
Docker
22 lines
579 B
Docker
FROM alpine:3.21
|
|
LABEL maintainer="Felipe Martin <me@fmartingr.com>"
|
|
LABEL org.opencontainers.image.source="https://git.nakama.town/fmartingr/terraria-companion"
|
|
|
|
RUN apk add --no-cache ca-certificates tzdata
|
|
|
|
RUN addgroup -g 1000 app && \
|
|
adduser -D -u 1000 -G app app
|
|
|
|
WORKDIR /app
|
|
|
|
ARG TARGETPLATFORM
|
|
COPY ${TARGETPLATFORM}/terraria-companion /usr/local/bin/terraria-companion
|
|
RUN chmod +x /usr/local/bin/terraria-companion && \
|
|
mkdir -p /app/data /app/data/icons && \
|
|
chown -R app:app /app
|
|
|
|
USER app
|
|
|
|
EXPOSE 3000
|
|
|
|
ENTRYPOINT ["/usr/local/bin/terraria-companion"]
|