a9cd7750f4
CI / unit-test (push) Has been cancelled
CI / detect-changes (push) Has been cancelled
CI / build (push) Has been cancelled
Publish docs via GitHub Pages / Deploy docs (push) Has been cancelled
CI / test-harness (push) Has been cancelled
CI / generate-e2e-matrix (push) Has been cancelled
CI / e2e (push) Has been cancelled
CI / build-ui (push) Has been cancelled
Release Drafter / update_release_draft (push) Has been cancelled
UI v2 Integration CI / E2E (Integration) (push) Has been cancelled
UI v2 CI / Lint, Format & Test (push) Has been cancelled
UI v2 CI / E2E (Mocked) (push) Has been cancelled
29 lines
911 B
Docker
29 lines
911 B
Docker
#
|
|
# conductor:ui - Conductor UI
|
|
#
|
|
FROM node:20-alpine
|
|
LABEL maintainer="Orkes OSS <oss@orkes.io>"
|
|
|
|
# Install the required packages for the node build
|
|
# to run on alpine
|
|
RUN apk update && apk add --no-cache python3 py3-pip make g++
|
|
|
|
# A directory within the virtualized Docker environment
|
|
# Becomes more relevant when using Docker Compose later
|
|
WORKDIR /usr/src/app
|
|
|
|
# Copies package.json to Docker environment in a separate layer as a performance optimization
|
|
COPY ./ui/package.json ./
|
|
|
|
# Installs all node packages. Cached unless package.json changes
|
|
RUN yarn install && mkdir -p public && cp -r node_modules/monaco-editor public/
|
|
|
|
# Copies everything else over to Docker environment
|
|
# node_modules excluded in .dockerignore.
|
|
COPY ./ui .
|
|
|
|
# Include monaco sources into bundle (instead of using CDN)
|
|
ENV REACT_APP_MONACO_EDITOR_USING_CDN=false
|
|
ENV REACT_APP_ENABLE_ERRORS_INSPECTOR=true
|
|
CMD [ "yarn", "start" ]
|