nu
This commit is contained in:
parent
e8864cc853
commit
1d42a9a623
9 changed files with 2122 additions and 542 deletions
|
|
@ -2,7 +2,7 @@ FROM drogonframework/drogon:latest
|
|||
|
||||
WORKDIR /app
|
||||
|
||||
# Install additional dependencies including redis-plus-plus dev package if available
|
||||
# Install additional dependencies including GPG for PGP verification
|
||||
RUN apt-get update && apt-get install -y \
|
||||
libpq-dev \
|
||||
postgresql-client \
|
||||
|
|
@ -12,6 +12,8 @@ RUN apt-get update && apt-get install -y \
|
|||
libhiredis-dev \
|
||||
curl \
|
||||
libssl-dev \
|
||||
gnupg \
|
||||
gnupg2 \
|
||||
&& rm -rf /var/lib/apt/lists/*
|
||||
|
||||
# Try to install redis-plus-plus from package manager first
|
||||
|
|
@ -87,6 +89,10 @@ RUN mkdir -p /app/uploads/avatars && \
|
|||
chown -R 65534:65534 /app/uploads && \
|
||||
chmod -R 755 /app/uploads
|
||||
|
||||
# Create a temporary directory for GPG operations
|
||||
RUN mkdir -p /tmp/pgp_verify && \
|
||||
chmod 777 /tmp/pgp_verify
|
||||
|
||||
# Ensure libraries are available
|
||||
ENV LD_LIBRARY_PATH=/usr/local/lib:$LD_LIBRARY_PATH
|
||||
|
||||
|
|
@ -94,6 +100,8 @@ ENV LD_LIBRARY_PATH=/usr/local/lib:$LD_LIBRARY_PATH
|
|||
RUN echo '#!/bin/bash\n\
|
||||
echo "Checking library dependencies..."\n\
|
||||
ldd ./build/streaming-backend\n\
|
||||
echo "Checking GPG installation..."\n\
|
||||
gpg --version\n\
|
||||
echo "Ensuring upload directories exist with proper permissions..."\n\
|
||||
mkdir -p /app/uploads/avatars\n\
|
||||
chown -R 65534:65534 /app/uploads\n\
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue