Bug fixes pipeline
This commit is contained in:
parent
b8e1cbef5d
commit
c2eb020d5c
@ -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"]
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user