Skip to content

Instantly share code, notes, and snippets.

@skrzyneckik
Forked from chrismarksus/Dockerfile
Last active November 12, 2019 13:39
Show Gist options
  • Save skrzyneckik/1fb5f25dbf939f791fa5ad7e92a8549c to your computer and use it in GitHub Desktop.
Save skrzyneckik/1fb5f25dbf939f791fa5ad7e92a8549c to your computer and use it in GitHub Desktop.
docker for slack-export-viewer
docker run -d -p 5000:5000 cmarks/slask-export-viewer -e ZIPFILEPATH=path/to/export/file.zip
FROM python:3.8
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}
MyApp
slack-export-viewer==1.0.0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment