Skip to content

Commit

Permalink
Adding ARM support to Docker (#142)
Browse files Browse the repository at this point in the history
* Updating Dockerfile. Fixing on ARM arch and adding dependency caching. Needs testing on non-ARM arch.

* Updating package versions
  • Loading branch information
bcd00 authored Sep 27, 2023
1 parent 6c6d56b commit 9bba706
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 6 deletions.
20 changes: 18 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,13 +1,29 @@
FROM node:14-alpine

RUN apk add --update g++ make py3-pip git && rm -rf /var/cache/apk/*
USER root

WORKDIR /usr/src/app
RUN mkdir ./packages

RUN for app in demo \launcher \preview \status; do mkdir "./packages/ove-ui-$app"; done
COPY ./packages/ove-ui-demo/package.json ./packages/ove-ui-demo
COPY ./packages/ove-ui-launcher/package.json ./packages/ove-ui-launcher
COPY ./packages/ove-ui-preview/package.json ./packages/ove-ui-preview
COPY ./packages/ove-ui-status/package.json ./packages/ove-ui-status

RUN npm --global config set user root

RUN npm install -global pm2
RUN npm install -global lerna
RUN npm install -global lerna@4.0.0

COPY . .
COPY package.json lerna.json ./
RUN npm run install:prod

COPY . .

RUN npm uninstall -global lerna
RUN apk del git g++ make py3-pip

EXPOSE 8281-8284

Expand Down
2 changes: 1 addition & 1 deletion packages/ove-ui-demo/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@ove/ove-ui-demo",
"version": "0.2.0",
"version": "0.2.1",
"description": "Launches demo scenarios on OVE",
"main": "server.js",
"private": true,
Expand Down
2 changes: 1 addition & 1 deletion packages/ove-ui-launcher/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@ove/ove-ui-launcher",
"version": "0.2.0",
"version": "0.2.1",
"description": "Launch applications on the OVE framework",
"main": "server.js",
"private": true,
Expand Down
2 changes: 1 addition & 1 deletion packages/ove-ui-preview/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@ove/ove-ui-preview",
"version": "0.2.0",
"version": "0.2.1",
"description": "Preview spaces of the OVE framework",
"main": "server.js",
"private": true,
Expand Down
2 changes: 1 addition & 1 deletion packages/ove-ui-status/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@ove/ove-ui-status",
"version": "0.2.0",
"version": "0.2.1",
"description": "Displays status of all OVE components",
"main": "server.js",
"private": true,
Expand Down

0 comments on commit 9bba706

Please sign in to comment.