Last active
April 12, 2019 19:53
-
-
Save b401/89f0d63a015aed1ce212c7fa48b93501 to your computer and use it in GitHub Desktop.
Deployment Dockerfile for hackadoc
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 node:boron | |
VOLUME /var/hackadoc | |
RUN apt update && apt install -y \ | |
git \ | |
sqlite3 | |
RUN git clone https://github.com/hackergarten/hackadoc.git /var/hackadoc | |
WORKDIR /var/hackadoc | |
RUN npm install \ | |
&& npm run build \ | |
&& npm prune --production | |
RUN apt remove -y --auto-remove \ | |
build-essential \ | |
&& apt purge \ | |
&& rm -r /var/lib/apt/lists/* | |
COPY config.json config.json | |
COPY sequelizerc .sequelizerc | |
CMD ["node", "app.js"] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment