-
Notifications
You must be signed in to change notification settings - Fork 41
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'feature/memory-sig-refactor' into develop
- Loading branch information
Showing
17 changed files
with
459 additions
and
294 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
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
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,13 +1,40 @@ | ||
# syntax=docker/dockerfile:1 | ||
|
||
FROM python:3.10 | ||
COPY . /opt/slack-watchman | ||
#FROM python:3.12-slim-bullseye | ||
#WORKDIR /opt/slack-watchman | ||
#COPY . /opt/slack-watchman | ||
#RUN pip install poetry | ||
#ENV PYTHONPATH=/opt/slack-watchman \ | ||
# SLACK_WATCHMAN_TOKEN="" \ | ||
# SLACK_WATCHMAN_COOKIE="" \ | ||
# SLACK_WATCHMAN_URL="" | ||
#RUN poetry config virtualenvs.create false && \ | ||
# poetry install --no-dev && \ | ||
# chmod -R 700 . && \ | ||
# poetry build && \ | ||
# pip install dist/*.whl | ||
#STOPSIGNAL SIGINT | ||
#WORKDIR /opt/slack-watchman | ||
#ENTRYPOINT ["slack-watchman"] | ||
|
||
# syntax=docker/dockerfile:1 | ||
FROM python:3.12-slim-bullseye AS builder | ||
WORKDIR /opt/slack-watchman | ||
ENV PYTHONPATH=/opt/slack-watchman SLACK_WATCHMAN_TOKEN="" SLACK_WATCHMAN_COOKIE="" SLACK_WATCHMAN_URL="" | ||
RUN pip3 install -r requirements.txt build && \ | ||
chmod -R 700 . && \ | ||
python3 -m build && \ | ||
python3 -m pip install dist/*.whl | ||
STOPSIGNAL SIGINT | ||
COPY . . | ||
RUN pip install poetry | ||
RUN poetry config virtualenvs.create false && \ | ||
poetry install --no-dev && \ | ||
poetry build | ||
|
||
FROM python:3.12-slim-bullseye | ||
WORKDIR /opt/slack-watchman | ||
COPY --from=builder /opt/slack-watchman/dist/*.whl /opt/slack-watchman/dist/ | ||
COPY --from=builder /opt/slack-watchman/pyproject.toml /opt/slack-watchman/poetry.lock /opt/slack-watchman/ | ||
ENV PYTHONPATH=/opt/slack-watchman \ | ||
SLACK_WATCHMAN_TOKEN="" \ | ||
SLACK_WATCHMAN_COOKIE="" \ | ||
SLACK_WATCHMAN_URL="" | ||
RUN pip install dist/*.whl && \ | ||
chmod -R 700 . | ||
STOPSIGNAL SIGINT | ||
ENTRYPOINT ["slack-watchman"] |
Oops, something went wrong.