diff --git a/scripts/Dockerfile.portal b/scripts/Dockerfile.portal new file mode 100644 index 0000000000..0d16d4483a --- /dev/null +++ b/scripts/Dockerfile.portal @@ -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" ]