Skip to content
Draft
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
27 changes: 27 additions & 0 deletions admin-ui/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
FROM node:22.13.1-alpine3.21 AS builder

RUN apk add --no-cache openjdk17

RUN deluser --remove-home node \
&& addgroup -S node -g 1000 \
&& adduser -S -G node -u 1000 node

WORKDIR /app
ENV HOME /app/.cache

RUN mkdir /app/.cache

RUN chown -R 1000:1000 /app

COPY --chown=1000:1000 ./package*.json /app/

ENV NODE_ENV=${ENVIRONMENT:-development}
RUN npm install @openapitools/openapi-generator-cli -g
RUN npm install


COPY --chown=1000:1000 . /app

COPY docker-entrypoint.sh /
RUN chmod +x /docker-entrypoint.sh
ENTRYPOINT ["/docker-entrypoint.sh"]
2 changes: 1 addition & 1 deletion admin-ui/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ npm run api
6. Run the project.

```
npm run install
npm run start
```

Once the project is compiled and started, UI can be accessed at URL: http://localhost:4100
Expand Down
22 changes: 22 additions & 0 deletions admin-ui/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
services:
admin-ui:
image: admin-ui
build:
context: ./
target: "builder"
restart: always
ports:
- 4100:4100
environment:
- CHOKIDAR_USEPOLLING=true
volumes:
# mount app folder into container
- ./:/app
# ignore local node_modules, use container
- /app/node_modules
command: "npm run start"
networks:
- cloud_bridge
networks:
cloud_bridge:
driver: bridge
4 changes: 4 additions & 0 deletions admin-ui/docker-entrypoint.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/usr/bin/env sh
set -eu
npm run api
exec "$@"
Loading