Skip to content

Commit

Permalink
Updated Docker base images
Browse files Browse the repository at this point in the history
  • Loading branch information
peterzen committed Sep 15, 2023
1 parent bf4887e commit 74961e3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions client/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,24 +10,24 @@
#

# frontend build
FROM node:19-buster-slim AS nodebuilder
FROM node:20-bookworm-slim AS nodebuilder
RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y git
WORKDIR /root/dex
COPY . .
RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y git
WORKDIR /root/dex/client/webserver/site/
RUN npm clean-install
RUN npm run build

# dexc binary build
FROM golang:1.19-alpine AS gobuilder
FROM golang:1.21-alpine AS gobuilder
COPY --from=nodebuilder /root/dex/ /root/dex/
WORKDIR /root/dex/client/cmd/dexc/
RUN CGO_ENABLED=0 GOOS=linux GO111MODULE=on go build
WORKDIR /root/dex/client/cmd/dexcctl/
RUN CGO_ENABLED=0 GOOS=linux GO111MODULE=on go build

# Final image
FROM debian:buster-slim
FROM debian:bookworm-slim
RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y ca-certificates
WORKDIR /dex
ENV HOME /dex
Expand Down
4 changes: 2 additions & 2 deletions client/Dockerfile.release
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
#

# dexc binary build
FROM golang:1.20-alpine AS gobuilder
FROM golang:1.21-alpine AS gobuilder
WORKDIR /root/dex
COPY . .
WORKDIR /root/dex/client/cmd/dexc/
Expand All @@ -22,7 +22,7 @@ WORKDIR /root/dex/client/cmd/dexcctl/
RUN CGO_ENABLED=0 GOOS=linux GO111MODULE=on go build

# Final image
FROM debian:buster-slim
FROM debian:bookworm-slim
RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y ca-certificates
WORKDIR /dex
ENV HOME /dex
Expand Down

0 comments on commit 74961e3

Please sign in to comment.