Skip to content

Commit

Permalink
core:: Add steps for building the main frontend
Browse files Browse the repository at this point in the history
  • Loading branch information
rafaellehmkuhl committed Jun 21, 2021
1 parent f50f101 commit 27289a5
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions core/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
FROM node:current-buster-slim AS frontendBuilder

# Build frontend
COPY frontend /home/pi/frontend
RUN cd /home/pi/frontend && yarn install && yarn build --skip-plugins @vue/cli-plugin-eslint

FROM bluerobotics/companion-base:v0.0.1

# Install necessary tools
Expand All @@ -23,5 +29,8 @@ COPY services /home/pi/services
COPY start-companion-core /usr/bin/start-companion-core
RUN /home/pi/services/install-services.sh

# Copy frontend built on frontendBuild to this stage
COPY --from=frontendBuilder /home/pi/frontend/dist /home/pi/frontend

# Start
ENTRYPOINT /usr/bin/start-companion-core && sleep infinity

0 comments on commit 27289a5

Please sign in to comment.