Skip to content

Commit

Permalink
install nginx from its repository
Browse files Browse the repository at this point in the history
  • Loading branch information
Pavel Botsman committed Dec 23, 2024
1 parent 9881869 commit 566a4d4
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,19 @@
FROM python:3.13-slim


# nginx pre-requisites
RUN apt update && apt upgrade -y

RUN apt install curl gnupg2 ca-certificates lsb-release debian-archive-keyring -y
RUN curl https://nginx.org/keys/nginx_signing.key | gpg --dearmor \
| tee /usr/share/keyrings/nginx-archive-keyring.gpg >/dev/null
RUN echo "deb [signed-by=/usr/share/keyrings/nginx-archive-keyring.gpg] \
http://nginx.org/packages/debian `lsb_release -cs` nginx" \
| tee /etc/apt/sources.list.d/nginx.list
RUN echo "Package: *\nPin: origin nginx.org\nPin: release o=nginx\nPin-Priority: 900\n" \
| tee /etc/apt/preferences.d/99nginx

RUN apt update
RUN apt install nginx ca-certificates -y

COPY requirements.txt .
Expand Down

0 comments on commit 566a4d4

Please sign in to comment.