Skip to content

Commit 9a7260a

Browse files
authored
fix: update Dockerfile and Caddy versions DOC-2077 (#53)
* fix: update Dockerfile and Caddy versions DOC-2077 * chore: adjust Dockerfile
1 parent 69c0633 commit 9a7260a

File tree

2 files changed

+20
-20
lines changed

2 files changed

+20
-20
lines changed

Dockerfile

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,17 +5,17 @@ RUN adduser -u 1002 -h /home/appuser -D appuser appuser && \
55
npm ci && npm run build
66

77

8-
FROM node:18-alpine AS production
8+
FROM node:24-alpine AS production
99
LABEL org.opencontainers.image.source="https://github.com/spectrocloud/hello-universe"
10-
LABEL org.opencontainers.image.description "A Spectro Cloud demo application intended for learning and showcasing products."
10+
LABEL org.opencontainers.image.description="A Spectro Cloud demo application intended for learning and showcasing products."
1111

1212
WORKDIR /app
13-
ENV NODE_ENV production
14-
ENV NEXT_TELEMETRY_DISABLED 1
15-
ENV PORT 8080
16-
ENV API_URI ""
17-
ENV API_VERSION 1
18-
ENV TOKEN ""
13+
ENV NODE_ENV=production
14+
ENV NEXT_TELEMETRY_DISABLED=1
15+
ENV PORT=8080
16+
ENV API_URI=""
17+
ENV API_VERSION=1
18+
ENV TOKEN=""
1919

2020
COPY --from=modules /etc/passwd /etc/passwd
2121
COPY --from=modules /etc/group /etc/group

Dockerfile.Caddy

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -5,22 +5,22 @@ RUN adduser -u 1002 -h /home/appuser -D appuser appuser && \
55
npm ci && npm run build
66

77

8-
FROM caddy:2.7.6-alpine as caddy
8+
FROM caddy:2.10.2-alpine AS caddy
99

10-
FROM node:18-alpine AS production
10+
FROM node:24-alpine AS production
1111
LABEL org.opencontainers.image.source="https://github.com/spectrocloud/hello-universe"
12-
LABEL org.opencontainers.image.description "A Spectro Cloud demo application intended for learning and showcasing products. This image contains a reverse proxy."
12+
LABEL org.opencontainers.image.description="A Spectro Cloud demo application intended for learning and showcasing products. This image contains a reverse proxy."
1313

1414
WORKDIR /app
15-
ENV NODE_ENV production
16-
ENV NEXT_TELEMETRY_DISABLED 1
17-
ENV PORT 8080
18-
ENV API_PORT 3000
19-
ENV API_URI ""
20-
ENV SVC_URI ""
21-
ENV API_VERSION 1
22-
ENV TOKEN ""
23-
ENV QUERY_K8S_API ""
15+
ENV NODE_ENV=production
16+
ENV NEXT_TELEMETRY_DISABLED=1
17+
ENV PORT=8080
18+
ENV API_PORT=3000
19+
ENV API_URI=""
20+
ENV SVC_URI=""
21+
ENV API_VERSION=1
22+
ENV TOKEN=""
23+
ENV QUERY_K8S_API=""
2424

2525
COPY --from=modules /etc/passwd /etc/passwd
2626
COPY --from=modules /etc/group /etc/group

0 commit comments

Comments
 (0)