fix dockerfiles

This commit is contained in:
Guy Bianco IV 2021-06-23 17:41:38 -04:00
parent f414d2e057
commit 05039c3eb0
2 changed files with 3 additions and 4 deletions

View file

@ -17,7 +17,6 @@ RUN cd /opt/app-root/src && \
ENV DATABASE_SVC=192.168.0.10 ENV DATABASE_SVC=192.168.0.10
ENV DATABASE_PORT=3306 ENV DATABASE_PORT=3306
ENV DATABASE_PASSWORD=secret-pass ENV DATABASE_PASSWORD=secret-pass
ENV DATABASE_INIT=true
ENV PORT=3000 ENV PORT=3000
EXPOSE 3000 EXPOSE 3000

View file

@ -10,9 +10,9 @@ USER 0
COPY . /tmp/todo-frontend COPY . /tmp/todo-frontend
RUN cd /tmp/todo-frontend && \ RUN cd /tmp/todo-frontend
npm install && \ RUN npm install
npm run build RUN npm run build
# https://github.com/sclorg/nginx-container # https://github.com/sclorg/nginx-container
FROM registry.access.redhat.com/ubi8/nginx-118 FROM registry.access.redhat.com/ubi8/nginx-118