Skip to content
Merged
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
13 changes: 9 additions & 4 deletions nginx/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
ARG VERSION
FROM ddmal/rodan-main:${VERSION} as rodan-static
FROM ddmal/rodan-main:${VERSION} AS rodan-static

RUN touch /code/Rodan/database.log /code/Rodan/rodan.log

Expand All @@ -18,10 +18,15 @@ RUN export DJANGO_SECRET_KEY=localdev \
###########################################################
FROM nginx:1.19

# prevents interactive prompts during package installation that would otherwise hang or break automated builds
ENV DEBIAN_FRONTEND=noninteractive

# Install OS dependencies
RUN apt-get -qq update \
&& apt-get -qq install openssl certbot unzip -y \
&& rm -rf /var/lib/apt/lists/*
RUN sed -i 's|http://deb.debian.org/debian|http://archive.debian.org/debian|g' /etc/apt/sources.list && \
sed -i 's|http://security.debian.org/debian-security|http://archive.debian.org/debian-security|g' /etc/apt/sources.list && \
apt-get -o Acquire::Check-Valid-Until=false update && \
apt-get install -y openssl certbot unzip && \
rm -rf /var/lib/apt/lists/*

# Add configuration files.
COPY ./config/nginx.conf /etc/nginx/nginx.conf
Expand Down