Bug fixes pipeline

This commit is contained in:
admin 2026-02-06 19:15:55 +07:00
parent b8e1cbef5d
commit c2eb020d5c

View File

@ -12,14 +12,19 @@ RUN CGO_ENABLED=0 GOOS=linux go build -ldflags="-s -w" -o nats-ui main.go
# Runtime stage # Runtime stage
FROM alpine:3.19 FROM alpine:3.19
RUN apk --no-cache add ca-certificates tzdata RUN apk --no-cache add ca-certificates tzdata && \
adduser -D -u 1000 -h /app appuser
WORKDIR /app WORKDIR /app
COPY --from=builder /app/nats-ui . COPY --from=builder /app/nats-ui .
COPY ./index.html ./config.yaml ./ COPY index.html config.yaml ./
RUN chmod +x nats-ui && chown -R appuser:appuser /app
EXPOSE 8080 EXPOSE 8080
USER appuser
ENTRYPOINT ["./nats-ui"] ENTRYPOINT ["./nats-ui"]
CMD ["config.yaml"] CMD ["config.yaml"]