comp review todo app update (#146)
* new todo frontend * yarn --> npm * basic Dockerfile * add Helm chart for todo list * backend working * connect new-app'd frontend to backend via proxy_pass * move nginx conf * move nginx conf back * move helm chart to course repo * add simple SSR node.js service * log error message * fix host typo * fix dockerfiles * add link to items page * improve probe route for todo-backend * canary probe route for todo-backend * Dockerfile -> Containerfile todo-backend * Dockerfile -> Containerfile todo-frontend * remove commands for containerfile as part of comp review
This commit is contained in:
28
todo-frontend/Containerfile
Normal file
28
todo-frontend/Containerfile
Normal file
@@ -0,0 +1,28 @@
|
||||
FROM registry.access.redhat.com/ubi8/nodejs-14 AS appbuild
|
||||
|
||||
LABEL version="1.0"
|
||||
LABEL description="To Do List application builder"
|
||||
|
||||
# ENV REACT_APP_API_HOST=http://localhost:3000
|
||||
ENV REACT_APP_API_HOST=""
|
||||
|
||||
USER 0
|
||||
|
||||
COPY . /tmp/todo-frontend
|
||||
|
||||
RUN cd /tmp/todo-frontend
|
||||
RUN npm install
|
||||
RUN npm run build
|
||||
|
||||
# https://github.com/sclorg/nginx-container
|
||||
FROM registry.access.redhat.com/ubi8/nginx-118
|
||||
|
||||
LABEL version="1.0"
|
||||
LABEL description="To Do List application front-end"
|
||||
LABEL creationDate="2017-12-25"
|
||||
LABEL updatedDate="2021-05-19"
|
||||
|
||||
COPY nginx.conf /etc/nginx/
|
||||
COPY --from=appbuild /tmp/todo-frontend/build /usr/share/nginx/html
|
||||
|
||||
CMD nginx -g "daemon off;"
|
||||
Reference in New Issue
Block a user