forked from RamZallan/csh-map
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathDockerfile
More file actions
32 lines (25 loc) · 738 Bytes
/
Dockerfile
File metadata and controls
32 lines (25 loc) · 738 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
25
26
27
28
29
30
31
32
FROM docker.io/python:3.13-slim-trixie
MAINTAINER Computer Science House
# Install Debian packages required for dependencies
RUN apt-get update && apt-get install -y --no-install-recommends \
build-essential \
libpq-dev \
libffi-dev \
libldap2-dev \
libsasl2-dev \
&& rm -rf /var/lib/apt/lists/*
# Add application user
RUN adduser --system --group map && \
mkdir -p /opt/map
# Add files and set permissions
ADD . /opt/map
RUN chown -R map /opt/map
WORKDIR /opt/map
# Install python dependencies
RUN pip install --no-cache-dir -r requirements.txt
# Drop privileges
USER map
# Expose default port
EXPOSE 8080
# Run application with Gunicorn
CMD ["gunicorn", "--workers=2", "--bind", "0.0.0.0:8080", "app"]