File tree 2 files changed +17
-2
lines changed
2 files changed +17
-2
lines changed Original file line number Diff line number Diff line change @@ -10,7 +10,6 @@ RUN pip install --no-cache-dir -r requirements.txt
10
10
# Copy the .env file first
11
11
# COPY .env . # ATTENTION. We shouldn't copy secrets to the image
12
12
13
-
14
13
# Copy the backend code
15
14
COPY . .
16
15
Original file line number Diff line number Diff line change @@ -4,13 +4,29 @@ WORKDIR /app
4
4
5
5
# Copy package files first for better layer caching
6
6
COPY package*.json ./
7
+
8
+ # Install build dependencies for node-gyp
9
+ RUN apt-get update && apt-get install -y --no-install-recommends \
10
+ python3 \
11
+ make \
12
+ g++ \
13
+ build-essential \
14
+ pkg-config \
15
+ libcairo2-dev \
16
+ libpango1.0-dev \
17
+ libjpeg-dev \
18
+ libgif-dev \
19
+ librsvg2-dev \
20
+ && rm -rf /var/lib/apt/lists/*
21
+
7
22
RUN npm install
8
23
9
24
# Copy the frontend code
10
25
COPY . .
11
26
27
+ RUN npm run build
12
28
13
29
EXPOSE 3000
14
30
15
31
# Default command is dev, but can be overridden in docker-compose
16
- CMD ["npm" , "run" , "dev " ]
32
+ CMD ["npm" , "start " ]
You can’t perform that action at this time.
0 commit comments