Skip to content

Commit af5cacd

Browse files
authored
Merge pull request #1317 from DDMAL/fix-dockerfile-debian-repo
Fix dockerfile debian repo for nginx image
2 parents 50df7c8 + c4776ee commit af5cacd

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

nginx/Dockerfile

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
ARG VERSION
2-
FROM ddmal/rodan-main:${VERSION} as rodan-static
2+
FROM ddmal/rodan-main:${VERSION} AS rodan-static
33

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

@@ -18,10 +18,15 @@ RUN export DJANGO_SECRET_KEY=localdev \
1818
###########################################################
1919
FROM nginx:1.19
2020

21+
# prevents interactive prompts during package installation that would otherwise hang or break automated builds
22+
ENV DEBIAN_FRONTEND=noninteractive
23+
2124
# Install OS dependencies
22-
RUN apt-get -qq update \
23-
&& apt-get -qq install openssl certbot unzip -y \
24-
&& rm -rf /var/lib/apt/lists/*
25+
RUN sed -i 's|http://deb.debian.org/debian|http://archive.debian.org/debian|g' /etc/apt/sources.list && \
26+
sed -i 's|http://security.debian.org/debian-security|http://archive.debian.org/debian-security|g' /etc/apt/sources.list && \
27+
apt-get -o Acquire::Check-Valid-Until=false update && \
28+
apt-get install -y openssl certbot unzip && \
29+
rm -rf /var/lib/apt/lists/*
2530

2631
# Add configuration files.
2732
COPY ./config/nginx.conf /etc/nginx/nginx.conf

0 commit comments

Comments
 (0)