-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
32 lines (24 loc) · 851 Bytes
/
Copy pathDockerfile
File metadata and controls
32 lines (24 loc) · 851 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
# ---------------------------
# Dockerfile for Slack Study Bot
# ---------------------------
# Use official Python 3.12 slim image
FROM python:3.12-slim
# Set working directory
WORKDIR /app
# Copy your requirements first to leverage Docker cache
COPY requirements.txt .
# Install dependencies
RUN pip install --no-cache-dir --upgrade pip \
&& pip install --no-cache-dir -r requirements.txt
# Copy all app files
COPY . .
# Set environment variables (optional defaults)
ENV TZ=America/Los_Angeles
ENV TEST_CHANNEL_ID="C0ACQP6P3T2"
# Unbuffer Python stdout/stderr so print() and logs show in Railway deploy logs
ENV PYTHONUNBUFFERED=1
# Port 3000 default; Railway sets PORT at runtime (used for /gmail/oauth callback server)
EXPOSE 3000
# Command to run your bot
# Adjust if your entrypoint file is named differently
CMD ["python", "app.py"]