-
-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy pathDockerfile
More file actions
20 lines (16 loc) · 651 Bytes
/
Dockerfile
File metadata and controls
20 lines (16 loc) · 651 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
FROM python:3.14-slim
WORKDIR /app
COPY ./requirements.txt /app
# "Installing this module requires OpenSSL python bindings"
RUN BUILD_DEPS="libssl-dev cargo gcc libffi-dev" && \
apt-get update && apt-get install -y $BUILD_DEPS && \
PYOPENSSL=$(grep 'pyopenssl=' requirements.txt) && \
pip install --no-cache-dir $PYOPENSSL && \
pip install --no-cache-dir -r /app/requirements.txt && \
apt-get purge -y --auto-remove $BUILD_DEPS && \
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
COPY . /app
RUN pip install -e .
CMD uvicorn src.adsb_api.app:app --host 0.0.0.0 --port 80
ENV PYTHONUNBUFFERED=1
ENV PYTHONDONTWRITEBYTECODE=1