forked from sagban/Zbar-barcode-reader-python-javascript
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
27 lines (21 loc) · 642 Bytes
/
Copy pathDockerfile
File metadata and controls
27 lines (21 loc) · 642 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
FROM python:3.8-slim
ENV PYTHONDONTWRITEBYTECODE=1 \
PYTHONUNBUFFERED=1
WORKDIR /app
# Install system build deps for packages that require compilation
RUN apt-get update \
&& apt-get install -y --no-install-recommends \
build-essential \
gcc \
libssl-dev \
libffi-dev \
python3-dev \
&& rm -rf /var/lib/apt/lists/*
# Install Python deps
COPY requirements.txt /app/requirements.txt
RUN pip install --upgrade pip setuptools wheel \
&& pip install --no-cache-dir -r /app/requirements.txt
# Copy project
COPY . /app
# Default: run the Django test suite
CMD ["python", "manage.py", "test"]