-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathDockerfile
More file actions
35 lines (26 loc) · 725 Bytes
/
Copy pathDockerfile
File metadata and controls
35 lines (26 loc) · 725 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
33
34
35
FROM python:3.11
ENV PYTHONUNBUFFERED=1
RUN apt-get update && apt-get upgrade -y
RUN apt-get update && apt-get install -y \
libpango-1.0-0 \
libpangoft2-1.0-0 \
libcairo2 \
libglib2.0-0 \
libffi-dev \
netcat-openbsd
COPY requirements.txt requirements.txt
RUN pip install -r requirements.txt
WORKDIR /app
COPY ./code /app/code
COPY quantum /app/quantum
COPY static /app/static
COPY staticfiles /app/staticfiles
COPY templates /app/templates
COPY webapp /app/webapp
COPY manage.py /app/
EXPOSE 8000
# Copy and setup entrypoint script
COPY docker/entrypoint.sh /entrypoint.sh
RUN chmod +x /entrypoint.sh
# Use entrypoint script instead of running migrations at build time
CMD ["/entrypoint.sh"]