We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8fb3704 commit 62648aaCopy full SHA for 62648aa
1 file changed
Dockerfile
@@ -1,19 +1,21 @@
1
# Use Node 20 with Alpine
2
FROM node:20-alpine
3
4
-# Install build essentials + git (optional)
5
-RUN apk add --no-cache make gcc g++ python3
+# Install build essentials + git + bash
+RUN apk add --no-cache make gcc g++ python3 bash git
6
7
WORKDIR /usr/src/app
8
9
COPY package*.json ./
10
11
RUN npm install --ignore-scripts
12
13
-# ✅ Do not run npm run setup:submodules — you already did it outside
14
-# So just copy the full app code, including submodules
+# Copy the full app code
15
COPY . .
16
+# Initialize and update submodules
17
+RUN git submodule update --init --recursive
18
+
19
RUN npm run re:build && npm run build
20
21
EXPOSE 9050
0 commit comments