Skip to content

Commit 032f095

Browse files
committed
docker updates
1 parent 0690663 commit 032f095

File tree

2 files changed

+17
-2
lines changed

2 files changed

+17
-2
lines changed

backend/Dockerfile

-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ RUN pip install --no-cache-dir -r requirements.txt
1010
# Copy the .env file first
1111
# COPY .env . # ATTENTION. We shouldn't copy secrets to the image
1212

13-
1413
# Copy the backend code
1514
COPY . .
1615

frontend/Dockerfile

+17-1
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,29 @@ WORKDIR /app
44

55
# Copy package files first for better layer caching
66
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+
722
RUN npm install
823

924
# Copy the frontend code
1025
COPY . .
1126

27+
RUN npm run build
1228

1329
EXPOSE 3000
1430

1531
# Default command is dev, but can be overridden in docker-compose
16-
CMD ["npm", "run", "dev"]
32+
CMD ["npm", "start"]

0 commit comments

Comments
 (0)