Skip to content

Commit 300164a

Browse files
committed
Generate Dockfile
1 parent 1fdb419 commit 300164a

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

Dockerfile

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# The base image is the latest 8.x node (LTS)
2+
FROM node:8.9.0
3+
4+
# Init Runtime
5+
ADD . /app/
6+
WORKDIR /app
7+
8+
# Mount VOLUME
9+
VOLUME /hitokoto
10+
ARG NODE_ENV
11+
ENV NODE_ENV $NODE_ENV
12+
13+
RUN npm i pnpm -g
14+
RUN pnpm install --force
15+
16+
ENV NODE_ENV=production \
17+
daemon=false \
18+
silent=false \
19+
CONFIG_FILE=""
20+
21+
CMD node core.js --config_path "$CONFIG_FILE"
22+
23+
# the default port for Teng-koa is exposed outside the container
24+
EXPOSE 8000

0 commit comments

Comments
 (0)