Skip to content

Instantly share code, notes, and snippets.

@skrzyneckik
Last active November 12, 2019 13:23
Show Gist options
  • Save skrzyneckik/fcec7548f2d9484497cfd6a40bdd610f to your computer and use it in GitHub Desktop.
Save skrzyneckik/fcec7548f2d9484497cfd6a40bdd610f to your computer and use it in GitHub Desktop.
Docker for slack-export to generate zip for slack-export-viewer
#issue token from https://api.slack.com/custom-integrations/legacy-tokens
docker build -t slack-export .
docker run -it --rm -e "TOKEN=your_token" -v ${PWD}:/opt/slack-export slack-export
FROM python:3.8-alpine
ENV TOKEN ""
RUN pip install slacker # https://github.com/os/slacker
RUN pip install pick # https://github.com/wong2/pick
#clone https://github.com/zach-snell/slack-export and place Dockerfile at the same location as slack-export.py
COPY . /opt/slack-export/
WORKDIR /opt/slack-export
ENTRYPOINT python slack_export.py --token ${TOKEN} --zip your_file_name
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment