Skip to content

Commit e75f3ea

Browse files
committed
Update dockerfile to install gcc
1 parent 92660d9 commit e75f3ea

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

services/question-service/Dockerfile

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,10 @@ WORKDIR /app
1010
ENV PYTHONDONTWRITEBYTECODE=1 \
1111
PYTHONUNBUFFERED=1
1212

13-
# Install system dependencies ()
14-
# RUN apt-get update && apt-get install -y --no-install-recommends \
15-
# build-essential gcc curl \
16-
# && rm -rf /var/lib/apt/lists/*
13+
# Install system dependencies (needed for some Python packages)
14+
RUN apt-get update && apt-get install -y --no-install-recommends \
15+
build-essential gcc curl \
16+
&& rm -rf /var/lib/apt/lists/*
1717

1818
# ======================
1919
# 2. Dependencies Stage
@@ -47,5 +47,5 @@ USER fastapiuser
4747
# Expose FastAPI default port
4848
EXPOSE 8000
4949

50-
# Run the application with uvicorn
51-
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "8000", "--workers", "2"]
50+
# Run the application with uvicorn (note: app.main:app instead of main:app)
51+
CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "8000", "--workers", "2"]

0 commit comments

Comments
 (0)