-
Notifications
You must be signed in to change notification settings - Fork 485
/
Dockerfile
33 lines (23 loc) · 823 Bytes
/
Dockerfile
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
33
FROM python:3.9
ENV PYTHONUNBUFFERED 1
ENV LC_ALL=C.UTF-8
#
# RUN apt-get -y update && apt-get -y --no-install-recommends install \
# build-essential \
# gcc \
# gettext \
# python3-dev \
# python3-venv \
# && \
# apt-get clean && \
# rm -rf /var/lib/apt/lists/* /usr/share/doc/* /usr/share/locale/* /usr/share/man/* && \
# mkdir -p /app && \
# (useradd -m app || true)
WORKDIR /app
ADD runtests/requirements.txt /app/
RUN pip install -r requirements.txt
ENV DJANGO_SETTINGS_MODULE settings
# *WARNING*: DO NOT "ADD . /app" because it would include the current settings in the base image, which is uploaded by
# CI to docker hub; Since the settings currently include secrets, this would leak our credentials!
EXPOSE 8000
CMD ["/app/manage.py", "runserver", "0.0.0.0:8000"]