mirror of
https://github.com/prymitive/karma
synced 2026-08-23 11:56:20 +00:00
fix(docker): fix dockerfile warnings
This commit is contained in:
committed by
Łukasz Mierzwa
parent
cfacc30842
commit
413087e2af
+4
-4
@@ -1,4 +1,4 @@
|
||||
FROM node:22.5.1-alpine as nodejs-builder
|
||||
FROM node:22.5.1-alpine AS nodejs-builder
|
||||
RUN mkdir -p /src/ui
|
||||
COPY ui/package.json ui/package-lock.json /src/ui/
|
||||
RUN cd /src/ui && npm ci && touch node_modules/.install
|
||||
@@ -6,7 +6,7 @@ RUN apk add make git
|
||||
COPY ui /src/ui
|
||||
RUN make -C /src/ui build
|
||||
|
||||
FROM golang:1.22.5-alpine as go-builder
|
||||
FROM golang:1.22.5-alpine AS go-builder
|
||||
RUN apk add make git
|
||||
COPY Makefile /src/Makefile
|
||||
COPY make /src/make
|
||||
@@ -24,8 +24,8 @@ RUN CGO_ENABLED=0 make -C /src VERSION="${VERSION:-dev}" karma
|
||||
|
||||
FROM gcr.io/distroless/static
|
||||
ARG VERSION
|
||||
LABEL org.opencontainers.image.source https://github.com/prymitive/karma
|
||||
LABEL org.opencontainers.image.version ${VERSION}
|
||||
LABEL org.opencontainers.image.source=https://github.com/prymitive/karma
|
||||
LABEL org.opencontainers.image.version=${VERSION}
|
||||
COPY --from=go-builder /src/karma /karma
|
||||
EXPOSE 8080
|
||||
ENTRYPOINT ["/karma"]
|
||||
|
||||
+4
-4
@@ -1,4 +1,4 @@
|
||||
FROM node:22.5.1-alpine as nodejs-builder
|
||||
FROM node:22.5.1-alpine AS nodejs-builder
|
||||
RUN mkdir -p /src/ui
|
||||
RUN apk add make git
|
||||
COPY ui/package.json ui/package-lock.json /src/ui/
|
||||
@@ -6,7 +6,7 @@ RUN cd /src/ui && npm ci && touch node_modules/.install
|
||||
COPY ui /src/ui
|
||||
RUN make -C /src/ui build
|
||||
|
||||
FROM golang:1.22.5-alpine as go-builder
|
||||
FROM golang:1.22.5-alpine AS go-builder
|
||||
RUN apk add make git
|
||||
COPY Makefile /src/Makefile
|
||||
COPY make /src/make
|
||||
@@ -22,9 +22,9 @@ COPY internal /src/internal
|
||||
ARG VERSION
|
||||
RUN CGO_ENABLED=0 make -C /src VERSION="${VERSION:-dev}" karma
|
||||
|
||||
FROM ghcr.io/prymitive/kthxbye:v0.16 as kthxbye
|
||||
FROM ghcr.io/prymitive/kthxbye:v0.16 AS kthxbye
|
||||
|
||||
FROM prom/alertmanager:v0.27.0 as alertmanager
|
||||
FROM prom/alertmanager:v0.27.0 AS alertmanager
|
||||
|
||||
FROM alpine:3.20
|
||||
COPY --from=kthxbye /kthxbye /kthxbye
|
||||
|
||||
Reference in New Issue
Block a user