Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,12 @@ do \
keytool -import -file $file -alias $file -cacerts -storepass changeit -noprompt; \
done

RUN chmod 755 /opt/app && \
chmod 644 /opt/app/status-board-assembly.jar && \
chmod 755 /opt/app/entrypoint.sh

USER 10001:10001

EXPOSE $PORT
WORKDIR /opt/app
ENTRYPOINT ["./entrypoint.sh"]
5 changes: 4 additions & 1 deletion UI.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,17 @@

ARG BASE_IMAGE=nginx


FROM $BASE_IMAGE
LABEL org.opencontainers.image.authors="ABSA"

# Project should be build locally by running `npm run build`
COPY ./ui/dist/ui/browser/ /usr/share/nginx/html
COPY ./ui/conf/nginx.conf /etc/nginx/conf.d/default.conf

RUN chmod -R 777 /var/cache/nginx /var/run

USER nginx

EXPOSE 4200

CMD ["nginx", "-g", "daemon off;"]