-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathDockerfile
executable file
·41 lines (33 loc) · 869 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
34
35
36
37
38
39
40
41
FROM python:3.12
WORKDIR /usr/src/app
ENV PYTHONPATH=/usr/src/app/src
ENV PYTHONUNBUFFERED=1
COPY . .
RUN chmod +x do/lint.sh
RUN chmod +x do/test.sh
RUN pip install --no-cache-dir -r requirements.txt
CMD [ "python", "./src/reddit_post_notification/reddit_post_notification.py" ]
# FROM ubuntu:24.10
# RUN apt-get update -y
# RUN apt-get install sqlite3 -y
#WORKDIR /usr/src/app
#ENV PYTHONPATH=/usr/src/app/src
#
#ENV TZ=America/New_York
#ENV PYTHONUNBUFFERED=1
#
#COPY src ./src
#COPY config.json .
#COPY requirements.txt .
#
## python3
#RUN apt-get install python3 -y
#RUN apt-get install python3-pip -y
#RUN apt-get install python3.12-venv -y
#
#RUN python3 -m venv .venv
## RUN python3 -m pip install --upgrade pip
#
#RUN .venv/bin/pip3 install -r requirements.txt
#
#CMD [ ".venv/bin/python3", "src/reddit_post_notification/reddit_post_notification.py" ]