Skip to content
This repository was archived by the owner on Sep 12, 2024. It is now read-only.
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions web/v2.6.3/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,13 @@ ENV DISCOURSE_WORKER_CONCURRENCY=${DISCOURSE_WORKER_CONCURRENCY:-2}

WORKDIR $DISCOURSE_ROOT

RUN echo "DISCOURSE_HOSTNAME is: $DISCOURSE_HOSTNAME"

RUN git clone https://github.com/discourse/discourse.git --branch $DISCOURSE_VERSION --single-branch $DISCOURSE_ROOT

RUN apt-get update && apt-get install -y \
brotli \
libbrotli-dev \
gifsicle \
jhead \
jpegoptim \
Expand All @@ -31,9 +34,10 @@ RUN gem install foreman

# Configure NGINX
COPY install-nginx.sh /tmp/install-nginx.sh
RUN /tmp/install-nginx.sh && \
RUN ldconfig && \
/tmp/install-nginx.sh && \
cp config/nginx.sample.conf /etc/nginx/conf.d/discourse.conf && \
sed -i "s/^ server_name enter\.your\.web\.hostname\.here;/ server_name $DISCOURSE_HOSTNAME;/" /etc/nginx/conf.d/discourse.conf && \
sed -i "s/^ server_name enter\\.your\\.web\\.hostname\\.here;/ server_name $DISCOURSE_HOSTNAME;/" /etc/nginx/conf.d/discourse.conf && \
mkdir -p /var/nginx/cache/

# Install Redis
Expand Down