Spaces:
Sleeping
Sleeping
Update Dockerfile
Browse files- Dockerfile +8 -1
Dockerfile
CHANGED
|
@@ -24,13 +24,20 @@ RUN cmake --build build -j$(nproc)
|
|
| 24 |
# ββ Stage 2: Runtime βββββββββββββββββββββββββββββββββββββββββ
|
| 25 |
FROM ubuntu:22.04
|
| 26 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 27 |
# HF Spaces requires the app to run as user 1000
|
| 28 |
RUN useradd -m -u 1000 appuser
|
| 29 |
|
| 30 |
WORKDIR /app
|
| 31 |
|
| 32 |
# Copy the compiled binary from the builder stage
|
| 33 |
-
# FIXED: The executable is 'collabdocs', not 'collab_docs'
|
| 34 |
COPY --from=builder --chown=appuser:appuser /app/build/collabdocs ./app_server
|
| 35 |
|
| 36 |
# Copy your frontend file so the C++ server can serve it
|
|
|
|
| 24 |
# ββ Stage 2: Runtime βββββββββββββββββββββββββββββββββββββββββ
|
| 25 |
FROM ubuntu:22.04
|
| 26 |
|
| 27 |
+
# FIX: Install runtime libraries for Boost and OpenSSL so the binary can run
|
| 28 |
+
RUN apt-get update && apt-get install -y \
|
| 29 |
+
libboost-system1.74.0 \
|
| 30 |
+
libboost-coroutine1.74.0 \
|
| 31 |
+
libboost-context1.74.0 \
|
| 32 |
+
libssl3 \
|
| 33 |
+
&& rm -rf /var/lib/apt/lists/*
|
| 34 |
+
|
| 35 |
# HF Spaces requires the app to run as user 1000
|
| 36 |
RUN useradd -m -u 1000 appuser
|
| 37 |
|
| 38 |
WORKDIR /app
|
| 39 |
|
| 40 |
# Copy the compiled binary from the builder stage
|
|
|
|
| 41 |
COPY --from=builder --chown=appuser:appuser /app/build/collabdocs ./app_server
|
| 42 |
|
| 43 |
# Copy your frontend file so the C++ server can serve it
|