Skip to content

Commit

Permalink
Merge pull request #16 from Luois45/feature-3
Browse files Browse the repository at this point in the history
Add Dockerfile and docker-compose file
  • Loading branch information
louisa-uno authored Feb 13, 2022
2 parents b0fb88a + 481eb9f commit c61c2df
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 0 deletions.
10 changes: 10 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
FROM python:3.8

WORKDIR /usr/src/app

COPY requirements.txt ./
RUN pip install --no-cache-dir -r requirements.txt

COPY activate_packages.py ./

CMD [ "python", "./activate_packages.py" ]
15 changes: 15 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
version: '3.7'
services:
reddit-bot:
image: ghcr.io/luois45/claim-free-steam-packages:latest
deploy:
replicas: 1
restart_policy:
condition: on-failure
max_attempts: 0
volumes:
# Replace the first path with your path to the activated_packages.txt & config.json file
- /c/Users/Louis/Desktop/code/ClaimSteamLicenses/acitvated_packages.txt:/usr/src/app/acitvated_packages.txt
- /c/Users/Louis/Desktop/code/ClaimSteamLicenses/config.json:/usr/src/app/config.json:ro
# Comment the following line if you don't want the logs in your directory
- /c/Users/Louis/Desktop/code/ClaimSteamLicenses/logging.txt:/usr/src/app/logging.txt

0 comments on commit c61c2df

Please sign in to comment.