Skip to content

Instantly share code, notes, and snippets.

@b401
Last active April 12, 2019 19:53
Show Gist options
  • Save b401/89f0d63a015aed1ce212c7fa48b93501 to your computer and use it in GitHub Desktop.
Save b401/89f0d63a015aed1ce212c7fa48b93501 to your computer and use it in GitHub Desktop.
Deployment Dockerfile for hackadoc
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