Skip to content

Commit c61c2df

Browse files
author
Louis_45
authored
Merge pull request #16 from Luois45/feature-3
Add Dockerfile and docker-compose file
2 parents b0fb88a + 481eb9f commit c61c2df

File tree

2 files changed

+25
-0
lines changed

2 files changed

+25
-0
lines changed

Dockerfile

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
FROM python:3.8
2+
3+
WORKDIR /usr/src/app
4+
5+
COPY requirements.txt ./
6+
RUN pip install --no-cache-dir -r requirements.txt
7+
8+
COPY activate_packages.py ./
9+
10+
CMD [ "python", "./activate_packages.py" ]

docker-compose.yml

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
version: '3.7'
2+
services:
3+
reddit-bot:
4+
image: ghcr.io/luois45/claim-free-steam-packages:latest
5+
deploy:
6+
replicas: 1
7+
restart_policy:
8+
condition: on-failure
9+
max_attempts: 0
10+
volumes:
11+
# Replace the first path with your path to the activated_packages.txt & config.json file
12+
- /c/Users/Louis/Desktop/code/ClaimSteamLicenses/acitvated_packages.txt:/usr/src/app/acitvated_packages.txt
13+
- /c/Users/Louis/Desktop/code/ClaimSteamLicenses/config.json:/usr/src/app/config.json:ro
14+
# Comment the following line if you don't want the logs in your directory
15+
- /c/Users/Louis/Desktop/code/ClaimSteamLicenses/logging.txt:/usr/src/app/logging.txt

0 commit comments

Comments
 (0)