DO288-apps/todo-backend/Containerfile
Guy Bianco IV 577bdfb1d6
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
2021-07-01 15:39:50 -04:00

26 lines
476 B
Docker

# https://github.com/sclorg/s2i-nodejs-container
FROM registry.access.redhat.com/ubi8/nodejs-14
LABEL version="1.0"
LABEL description="To Do List application backend"
LABEL creationDate="2017-12-25"
LABEL updatedDate="2021-05-19"
USER 0
COPY . /opt/app-root/src
RUN cd /opt/app-root/src && \
npm install && \
npm run build
ENV DATABASE_SVC=192.168.0.10
ENV DATABASE_PORT=3306
ENV DATABASE_PASSWORD=secret-pass
ENV PORT=3000
EXPOSE 3000
USER 1001
CMD npm start