Skip to content

Commit 9ba1ca3

Browse files
authored
Update Dockerfile to checkout specific branch and separate server build commands (#13124)
1 parent 0f222e1 commit 9ba1ca3

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

docker/ee/ee-production.Dockerfile

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ RUN git config --global http.postBuffer 524288000
2020
RUN git clone https://github.com/ToolJet/ToolJet.git .
2121

2222
# The branch name needs to be changed the branch with modularisation in CE repo
23-
RUN git checkout ${BRANCH_NAME}
23+
RUN git checkout fix/new-dockerfile-main
2424

2525
RUN git submodule update --init --recursive
2626

@@ -49,7 +49,9 @@ ENV NODE_ENV=production
4949
COPY ./server/package.json ./server/package-lock.json ./server/
5050
RUN npm --prefix server ci --omit=dev
5151
COPY ./server/ ./server/
52-
RUN npm install -g @nestjs/cli && npm install -g copyfiles && npm --prefix server run build
52+
RUN npm install -g @nestjs/cli
53+
RUN npm install -g copyfiles
54+
RUN npm --prefix server run build
5355
RUN npm prune --production --prefix server
5456

5557
# Install dependencies for PostgREST, curl, unzip, etc.

0 commit comments

Comments
 (0)