-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
29 lines (21 loc) · 842 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
FROM debian:bookworm-slim
# RUN mkdir -p /var/www/Locker
# RUN chown newuser /var/www/Locker
# USER newuser
WORKDIR /var/www/GroupUs
COPY requirements.txt .
COPY hackcoms hackcoms
COPY static static
COPY templates templates
COPY db.sql db.sql
RUN apt-get update && apt-get -y upgrade
RUN apt-get --yes install python3.11 python3-pip curl lsb-release
RUN sh -c 'echo "deb http://apt.postgresql.org/pub/repos/apt $(lsb_release -cs)-pgdg main" > /etc/apt/sources.list.d/pgdg.list'
RUN curl -fsSL https://www.postgresql.org/media/keys/ACCC4CF8.asc | gpg --dearmor -o /etc/apt/trusted.gpg.d/postgresql.gpg
RUN apt-get update
RUN apt-get --yes install postgresql-17
RUN apt clean
ARG POSTGRES_URI
RUN pip install --no-cache-dir -r requirements.txt --break-system-packages
EXPOSE 80
CMD flask -A hackcoms.app:app run --host 0.0.0.0 --port 80