Created
November 14, 2017 21:22
-
-
Save chrismarksus/c0457ea6744368e6efe15ae58812a933 to your computer and use it in GitHub Desktop.
docker for slack-export-viewer
This file contains hidden or 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
docker run -d -p 5000:5000 cmarks/slask-export-viewer -e ZIPFILEPATH=path/to/export/file.zip |
This file contains hidden or 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
FROM python:3 | |
MAINTAINER Chris Marks | |
ENV HOST=0.0.0.0 | |
ENV PORT=5000 | |
WORKDIR /app | |
EXPOSE ${PORT} | |
COPY requirements.txt ./ | |
RUN pip install --no-cache-dir -r requirements.txt | |
COPY . . | |
RUN groupadd -g 999 appuser && \ | |
useradd -r -u 999 -g appuser appuser | |
USER appuser | |
CMD slack-export-viewer --no-browser -I ${HOST} -p ${PORT} -z ${ZIPFILEPATH} |
This file contains hidden or 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
MyApp | |
slack-export-viewer==0.2.0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment