@things-factory/operato-board 9.1.19 → 10.0.0-beta.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/Dockerfile CHANGED
@@ -1,31 +1,28 @@
1
- # Use an official ubuntu image
1
+ # v10 모노레포 Dockerfile 로컬 빌드 아티팩트 사용
2
+ # 사전 조건: 로컬에서 yarn build + build:app 완료
3
+ # 빌드 컨텍스트: ~/Documents/GitHub/
4
+ # 빌드: cd ~/Documents/GitHub && docker compose build operato-board
2
5
  FROM hatiolab/operato-env:latest
3
6
 
4
- # Set the working directory to /app
5
- WORKDIR /app
7
+ WORKDIR /workspace
6
8
 
7
- # copy application & configuration files
8
- COPY . .
9
+ # 외부 의존 레포 복사 (로컬에서 빌드된 dist/ 포함)
10
+ COPY things-scene/hatiolab-things-scene-10.0.0-beta.1.tgz ./things-scene.tgz
11
+ COPY operato/ operato/
12
+ COPY operato-scene/ operato-scene/
9
13
 
10
- # run node install command
11
- RUN yarn install
14
+ # things-factory 모노레포 복사 (dist-server/, dist-client/, dist-app/ 포함)
15
+ COPY things-factory/package.json things-factory/yarn.lock things-factory/lerna.json things-factory/babel.config.js ./things-factory/
16
+ COPY things-factory/packages/ things-factory/packages/
12
17
 
13
- # Install required packages (necessary for locale setup)
14
- RUN apt-get update && apt-get install -y locales tzdata
18
+ WORKDIR /workspace/things-factory
15
19
 
16
- # Generate the en_US.UTF-8 locale
17
- RUN locale-gen en_US.UTF-8
20
+ # Docker 환경에서는 link:../things-scene → tarball 참조로 치환
21
+ RUN sed -i 's|"link:../things-scene"|"file:../things-scene.tgz"|' package.json
18
22
 
19
- # Set environment variables for locale and timezone
20
- ENV LANG=en_US.UTF-8
21
- ENV LANGUAGE=en_US:en
22
- ENV LC_ALL=en_US.UTF-8
23
- ENV TZ=UTC
23
+ # 런타임 의존성 설치 (네이티브 모듈은 linux용으로 빌드)
24
+ RUN yarn install --frozen-lockfile || yarn install
24
25
 
25
- # Set timezone to UTC (using tzdata)
26
- RUN ln -snf /usr/share/zoneinfo/UTC /etc/localtime && echo "UTC" > /etc/timezone
27
-
28
- # Make port 3000 available to the world outside this container
26
+ WORKDIR /workspace/things-factory/packages/operato-board
29
27
  EXPOSE 3000
30
-
31
- CMD [ "yarn", "run", "serve" ]
28
+ CMD ["yarn", "run", "serve"]
package/_index.html CHANGED
@@ -63,8 +63,7 @@
63
63
  <noscript> Please enable JavaScript to view this website. </noscript>
64
64
  <!-- Load webcomponents-loader.js to check and load any polyfills your browser needs -->
65
65
  <script src="/node_modules/@webcomponents/webcomponentsjs/webcomponents-loader.js"></script>
66
- <script src="/node_modules/web-animations-js/web-animations-next.min.js"></script>
67
- <script src="/node_modules/@hatiolab/things-scene/things-scene-min.js"></script>
66
+
68
67
  <!-- Built with love using PWA Starter Kit -->
69
68
  </body>
70
69
  </html>