Skip to content

Commit fd75c5f

Browse files
authored
Merge pull request #3 from ifsvivek/copilot/add-dockerfile-for-railway
Add Dockerfile and railway.toml for Railway platform deployment
2 parents 2c6f7bd + 5a3413d commit fd75c5f

2 files changed

Lines changed: 18 additions & 0 deletions

File tree

Dockerfile

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
FROM python:3.12-slim
2+
3+
WORKDIR /app
4+
5+
COPY requirements.txt .
6+
RUN pip install --no-cache-dir --upgrade pip && \
7+
pip install --no-cache-dir -r requirements.txt
8+
9+
COPY . .
10+
11+
ENTRYPOINT ["python", "LocalBot.py"]

railway.toml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
[build]
2+
builder = "dockerfile"
3+
dockerfilePath = "Dockerfile"
4+
5+
[deploy]
6+
restartPolicyType = "on_failure"
7+
restartPolicyMaxRetries = 10

0 commit comments

Comments
 (0)