Created
July 25, 2019 18:17
-
-
Save whopiyush/7e551961cc56be8a7cfae3e433c8b96e to your computer and use it in GitHub Desktop.
Modmail Dockerfile
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 alpine:3.10 | |
| WORKDIR /usr/src/modmail | |
| COPY . . | |
| ENV LC_ALL=en_US.UTF-8 \ | |
| LANG=en_US.UTF-8 | |
| RUN apk update \ | |
| && apk add --no-cache --update python3 nodejs npm \ | |
| && pip3.7 install --no-cache-dir -U pip pipenv\ | |
| && npm i -g pm2 \ | |
| && pipenv run pip freeze > requirements.txt \ | |
| && pip3.7 install -r requirements.txt \ | |
| && chmod +x ./run.sh | |
| CMD [ "pm2", "run.sh" ] |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
dabs