Skip to content

Commit

Permalink
Merge pull request #43 from asdfg0280/docker/standalone
Browse files Browse the repository at this point in the history
add Dockerfile
  • Loading branch information
madmas authored Jul 20, 2018
2 parents 7ccc9dd + 9d17add commit a0d6a11
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
FROM node:boron

RUN echo "deb http://apt.postgresql.org/pub/repos/apt/ wheezy-pgdg main" > /etc/apt/sources.list.d/pgdg.list && \
wget -O - http://apt.postgresql.org/pub/repos/apt/ACCC4CF8.asc | apt-key add - && \
apt-get update && \
apt-get install -y git postgresql-client-9.6

#make directory
RUN mkdir /hackadoc
WORKDIR /hackadoc

# file moving
ADD . .
# rename examples
RUN mv .sequelizerc.example .sequelizerc
RUN mv config.json.example config.json

# npm install
RUN npm install
# npm build
RUN npm run build

# npm dev dependencies
RUN npm prune --production

# remove build dependencies
RUN apt-get remove -y --auto-remove build-essential && \
apt-get clean && apt-get purge && rm -r /var/lib/apt/lists/*

EXPOSE 3000

CMD ["node", "app.js"]

0 comments on commit a0d6a11

Please sign in to comment.