-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
changed how we obtain discord token to come from env variable (#38)
- Loading branch information
Showing
5 changed files
with
26 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,16 @@ | ||
# Light based python image | ||
FROM python:3.9-alpine | ||
|
||
# Git is required for requirements.txt | ||
RUN apk update | ||
RUN apk add git | ||
|
||
# Work in /app for the application from container | ||
WORKDIR /app | ||
# Copy actual directory in /app | ||
COPY . . | ||
|
||
# Read token from argument | ||
ARG token | ||
# Define an environnement Variable | ||
ENV JETON=${token} | ||
|
||
# run necessary command to install all modules | ||
RUN pip install -r requirements.txt | ||
|
||
RUN pip install git+https://github.com/Pycord-Development/pycord | ||
# run trema | ||
CMD python -u trema.py -j ${JETON} | ||
CMD python -u trema.py |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,4 @@ | ||
jsonschema==4.7.2 | ||
py-cord==2.0.0b7 | ||
pymongo==4.1.1 | ||
pytest~=7.2.0 | ||
discord~=2.1.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters