Last active
March 27, 2018 07:23
-
-
Save sr229/da8a79e886b91630553b5229ee7efecb to your computer and use it in GitHub Desktop.
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
# Dockerfile for CPU-only CakeChat setup | |
FROM python:alpine3.7 | |
RUN addgroup -g 1000 python \ | |
&& adduser -u 1000 -G python -s /bin/sh -D python | |
# Install some dependencies | |
RUN apk update && apk add py3-numpy py-numpy-dev openblas openblas-dev g++ | |
# setup cakechat and install dependencies | |
COPY . /opt/app | |
WORKDIR /opt/app | |
RUN chmod g+rw /opt/app && \ | |
chown python:python /opt/app; | |
RUN python3 -m pip install -r requirements.txt && \ | |
python3 tools/download_model.py && \ | |
apk del g++ py3-numpy-dev openblas-dev | |
VOLUME ["/opt/cakechat/data"] | |
USER 1000 | |
CMD ["python", "bin/cakechat_server.py"] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment