Skip to content

Commit

Permalink
Generate Dockfile
Browse files Browse the repository at this point in the history
  • Loading branch information
a632079 committed May 13, 2018
1 parent 1fdb419 commit 300164a
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# The base image is the latest 8.x node (LTS)
FROM node:8.9.0

# Init Runtime
ADD . /app/
WORKDIR /app

# Mount VOLUME
VOLUME /hitokoto
ARG NODE_ENV
ENV NODE_ENV $NODE_ENV

RUN npm i pnpm -g
RUN pnpm install --force

ENV NODE_ENV=production \
daemon=false \
silent=false \
CONFIG_FILE=""

CMD node core.js --config_path "$CONFIG_FILE"

# the default port for Teng-koa is exposed outside the container
EXPOSE 8000

0 comments on commit 300164a

Please sign in to comment.