forked from thecourseforum/theCourseForum2
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
24 lines (17 loc) · 750 Bytes
/
Dockerfile
File metadata and controls
24 lines (17 loc) · 750 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
FROM python:3.12
ENV PYTHONUNBUFFERED=1
SHELL ["/bin/bash", "-o", "pipefail", "-c"]
RUN apt-get update && \
apt-get install -y --no-install-recommends \
libpq-dev build-essential ca-certificates \
curl gnupg unattended-upgrades && \
rm -rf /var/lib/apt/lists/* && \
curl -sSL https://raw.githubusercontent.com/vishnubob/wait-for-it/master/wait-for-it.sh > /wait-for-it.sh && \
chmod +x /wait-for-it.sh
WORKDIR /app
# Copy requirements and install (use dev.txt for local, base.txt for prod)
ARG REQUIREMENTS=requirements/base.txt
COPY requirements/ /app/requirements/
RUN pip3 install -r /app/${REQUIREMENTS} --disable-pip-version-check --no-cache-dir
COPY . /app/
RUN chmod +x /app/scripts/container-startup.sh