We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 401a62a commit 9eee648Copy full SHA for 9eee648
1 file changed
omnissiah/chat-linker/Dockerfile
@@ -1,8 +1,8 @@
1
FROM node:8.7.0-alpine
2
RUN apk update && apk add git
3
-RUN git clone https://github.com/jt3k/chat-linker.git /usr/app/src && cd /usr/app/src && git checkout 4aab67aa6a59368896d427f14060c59484ff0a37
4
-RUN cd /usr/app/src && npm install # TODO: Not stable enough; migrate to yarn
5
-COPY app-config.json /usr/app/src/app-config.json
6
-WORKDIR /usr/app/src
+RUN git clone https://github.com/jt3k/chat-linker.git /usr/app && cd /usr/app && git checkout 4aab67aa6a59368896d427f14060c59484ff0a37
+RUN cd /usr/app && npm install && npm run build # TODO: Not stable enough; migrate to yarn
+COPY app-config.json /usr/app/app-config.json
+WORKDIR /usr/app
7
ENV NODE_ENV prod
8
-CMD ["node", "app.js"]
+CMD ["node", "dist/app.js"]
0 commit comments