forked from hreeder/discord-post-updater
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support XML-defined granular message options (#1)
- Loading branch information
1 parent
82d6f6a
commit b1ebbc3
Showing
7 changed files
with
424 additions
and
32 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,18 @@ | ||
FROM python:3 | ||
FROM python:3.10 | ||
|
||
COPY post_updater.py /bin/post_updater | ||
COPY requirements.txt /tmp/requirements.txt | ||
RUN chmod +x /bin/post_updater && pip install -r /tmp/requirements.txt | ||
# Set Poetry Version | ||
ENV POETRY_VERSION=1.1.13 | ||
# Install Poetry | ||
RUN curl -sSL https://install.python-poetry.org | python3 - --version $POETRY_VERSION | ||
# Add poetry install location to PATH | ||
ENV PATH=/root/.local/bin:$PATH | ||
|
||
CMD ["/bin/post_updater"] | ||
RUN poetry config virtualenvs.create false | ||
COPY poetry.lock pyproject.toml ./ | ||
RUN poetry install --no-root --no-dev | ||
|
||
COPY post_updater.py /bin/post_updater.py | ||
|
||
RUN chmod +x /bin/post_updater.py | ||
|
||
CMD ["post_updater.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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.