-
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.
- Loading branch information
Showing
4 changed files
with
34 additions
and
29 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,16 +1,16 @@ | ||
# syntax=docker/dockerfile:1 | ||
FROM python:latest | ||
RUN apt update && apt install python3-dev gcc -y | ||
RUN useradd -rm -d /home/appuser -s /bin/bash -g root -G sudo -u 1001 appuser | ||
COPY requirements.txt /home/appuser/requirements.txt | ||
COPY entrypoint.sh /home/appuser/entrypoint.sh | ||
RUN chmod +x /home/appuser/entrypoint.sh | ||
RUN apt update && apt install python3-dev gcc -y curl | ||
RUN useradd --create-home appuser | ||
WORKDIR /app | ||
USER appuser | ||
RUN mkdir -p /home/appuser/.local/share/pypoetry | ||
RUN curl -sSL https://install.python-poetry.org | python3 - --preview | ||
ENV PATH="/home/appuser/.local/bin:${PATH}" | ||
WORKDIR /home/appuser | ||
RUN pip3 install -r requirements.txt | ||
ENV PATH=/home/appuser/.local/bin:$PATH | ||
COPY webhookfromghost.ini /home/appuser/webhookfromghost.ini | ||
COPY webhookfromghost.py /home/appuser/webhookfromghost.py | ||
COPY wsgi.py /home/appuser/wsgi.py | ||
COPY --chown=appuser:appuser pyproject.toml webhookfromghost.ini webhookfromghost.py poetry.lock wsgi.py requirements.txt entrypoint.sh /home/appuser/ | ||
RUN poetry config virtualenvs.in-project true \ | ||
&& poetry install --no-interaction --no-ansi | ||
EXPOSE 5000/tcp | ||
RUN chmod +x /home/appuser/entrypoint.sh | ||
ENTRYPOINT ["/home/appuser/entrypoint.sh"] |
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,21 +1,21 @@ | ||
blurhash==1.1.4 | ||
certifi==2022.12.7 | ||
charset-normalizer==3.1.0 | ||
charset-normalizer==2.1.1 | ||
click==8.1.3 | ||
decorator==5.1.1 | ||
Flask==2.3.2 | ||
Flask==2.2.2 | ||
idna==3.4 | ||
importlib-metadata==6.6.0 | ||
importlib-metadata==6.0.0 | ||
itsdangerous==2.1.2 | ||
Jinja2==3.1.2 | ||
MarkupSafe==2.1.2 | ||
Mastodon.py==1.8.1 | ||
MarkupSafe==2.1.1 | ||
Mastodon.py==1.8.0 | ||
python-dateutil==2.8.2 | ||
python-magic==0.4.27 | ||
pytz==2023.3 | ||
requests==2.28.2 | ||
pytz==2022.7 | ||
requests==2.28.1 | ||
six==1.16.0 | ||
urllib3==1.26.15 | ||
urllib3==1.26.13 | ||
uWSGI==2.0.21 | ||
Werkzeug==2.2.3 | ||
zipp==3.15.0 | ||
Werkzeug==2.2.2 | ||
zipp==3.11.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