mirror of
https://gitlab.com/soapbox-pub/ditto.git
synced 2025-12-06 11:29:46 +00:00
27 lines
No EOL
590 B
Text
27 lines
No EOL
590 B
Text
FROM denoland/deno:2.2.2
|
|
|
|
WORKDIR /app
|
|
|
|
# Install curl and Rust for nak installation
|
|
RUN apt-get update && apt-get install -y \
|
|
curl \
|
|
jq \
|
|
unzip \
|
|
&& rm -rf /var/lib/apt/lists/*
|
|
|
|
# Copy the application files
|
|
COPY . .
|
|
|
|
# Install soapbox
|
|
RUN deno task soapbox
|
|
|
|
# Generate NSEC at build time
|
|
RUN export DITTO_NSEC=$(deno task nsec) && \
|
|
echo "export DITTO_NSEC=$DITTO_NSEC" > /app/nsec.env
|
|
|
|
ENV DATABASE_URL=""
|
|
|
|
EXPOSE 4036
|
|
|
|
# Use array form with shell -c to properly handle the command
|
|
CMD ["/bin/sh", "-c", ". /app/nsec.env && deno run -A /app/packages/ditto/server.ts"] |