Skip to content

Commit

Permalink
Create Dockerfile.portal
Browse files Browse the repository at this point in the history
  • Loading branch information
coffeeorgreentea authored Jul 27, 2024
1 parent c54e81b commit e334d71
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions scripts/Dockerfile.portal
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
FROM magickml/magick:latest

ARG GITHUB_TOKEN
ARG BRANCH=development

ARG RAILWAY_GIT_COMMIT_SHA
# Configure git to use the token
RUN git config --global url."https://${GITHUB_TOKEN}@github.com/".insteadOf "https://github.com/"
RUN git clone --branch ${BRANCH} --depth 1 https://www.github.com/oneirocom/magick.git /app

WORKDIR /app

# Clone the submodule
RUN git submodule update --init --recursive portal/cloud


RUN npm install

RUN npm run portal:build

ENTRYPOINT [ "npm", "run" ]
CMD [ "portal:start" ]

0 comments on commit e334d71

Please sign in to comment.