forked from mimischi/dokku-sentry
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
24 lines (19 loc) · 887 Bytes
/
Dockerfile
File metadata and controls
24 lines (19 loc) · 887 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
FROM sentry:9.1.2-onbuild
ENV PYTHONUNBUFFERED=1
# Create a non-root user to run the app
RUN addgroup --gid ${GID:-1000} django \
&& adduser --disabled-password --gecos "" --home /app --uid ${UID:-1000} --gid ${GID:-1000} django \
&& chown -R django:django /app
# Fix Debian repository, upgrade packages and install wget
RUN echo "deb http://archive.debian.org/debian stretch main contrib non-free" > /etc/apt/sources.list \
&& echo "deb http://archive.debian.org/debian-security stretch/updates main contrib non-free" >> /etc/apt/sources.list \
&& apt update \
&& apt upgrade -y \
&& apt install --no-install-recommends -y wget \
&& apt purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false \
&& apt clean \
&& rm -rf /var/lib/apt/lists/*
# Download a free GeoIP database
COPY scripts/download-geoip.sh /app/
RUN /app/download-geoip.sh
USER django