IBM / spacetech-kubesat

IBM Space Tech - Cognitive Autonomous Framework
Apache License 2.0
83 stars 16 forks source link

Error response from daemon: No such container: dev-dashboard #51

Closed markospacetech closed 2 years ago

markospacetech commented 2 years ago

Hi would love to experiment with this project but it seems the dashboard container is either outdated or missing? Has this repository been maintained at all?

Cheers

markospacetech commented 2 years ago

Fixed dashboard Dockerfile with

FROM node:15-alpine as build-deps
WORKDIR /usr/src/app
ARG INSTALL_PYTHON=true
RUN if [ ${INSTALL_PYTHON} = true ]; then \
  apk add python2 build-base \
;fi

COPY package.json ./
RUN yarn
COPY . ./
RUN yarn build

FROM node:alpine
WORKDIR /usr/src/app
COPY --from=build-deps /usr/src/app/build /usr/src/app/build
COPY --from=build-deps /usr/src/app/app.js /usr/src/app
COPY --from=build-deps /usr/src/app/server_package.json /usr/src/app
RUN mv server_package.json package.json \
    && npm install

EXPOSE 8080
CMD ["node", "app.js"]