File tree Expand file tree Collapse file tree 2 files changed +16
-13
lines changed Expand file tree Collapse file tree 2 files changed +16
-13
lines changed Original file line number Diff line number Diff line change 1- FROM nginx:1.23-alpine- slim
1+ FROM --platform=linux/amd64 node:18- slim AS builder
22
3- RUN apk add --update nodejs npm
3+ WORKDIR /usr/src/app
44
5- WORKDIR /usr/share/build
5+ RUN mkdir -p ./src \
6+ && mkdir -p ./scripts \
7+ && mkdir -p ./staged-themes
68
7- RUN mkdir -p /usr/share/build/src \
8- && mkdir -p /usr/share/build/scripts
9+ COPY src/ ./src/
10+ COPY staged-themes/ ./staged-themes
11+ COPY scripts/ ./scripts/
12+ COPY *.json ./
913
10- COPY src/ /usr/share/build/src/
11-
12- COPY scripts/ /usr/share/build/scripts/
13-
14- COPY *.json /usr/share/build/
14+ RUN rm package-lock.json
1515
16+ RUN npm install -g @oracle/
[email protected] 1617RUN npm install
17- RUN npm install -g @oracle/ojet-cli
18- RUN ojet build web --release
18+ RUN ojet build web --release
19+
20+ FROM --platform=linux/amd64 nginx:1.23-alpine-slim
1921
20- RUN cp -R /usr/share/build /web/* /usr/share/nginx/html/
22+ COPY --from=builder /usr/src/app /web/* /usr/share/nginx/html/
2123
2224EXPOSE 80
2325
Original file line number Diff line number Diff line change 2121 spec :
2222 containers :
2323 - image : app
24+ imagePullPolicy : " Always"
2425 name : app
2526 readinessProbe :
2627 httpGet :
You can’t perform that action at this time.
0 commit comments