Skip to content

Commit 62648aa

Browse files
fix: DockerFile (#1200)
1 parent 8fb3704 commit 62648aa

1 file changed

Lines changed: 6 additions & 4 deletions

File tree

Dockerfile

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,21 @@
11
# Use Node 20 with Alpine
22
FROM node:20-alpine
33

4-
# Install build essentials + git (optional)
5-
RUN apk add --no-cache make gcc g++ python3
4+
# Install build essentials + git + bash
5+
RUN apk add --no-cache make gcc g++ python3 bash git
66

77
WORKDIR /usr/src/app
88

99
COPY package*.json ./
1010

1111
RUN npm install --ignore-scripts
1212

13-
# ✅ Do not run npm run setup:submodules — you already did it outside
14-
# So just copy the full app code, including submodules
13+
# Copy the full app code
1514
COPY . .
1615

16+
# Initialize and update submodules
17+
RUN git submodule update --init --recursive
18+
1719
RUN npm run re:build && npm run build
1820

1921
EXPOSE 9050

0 commit comments

Comments
 (0)