added dockerfile

This commit is contained in:
srgooglo 2021-06-15 14:56:14 +02:00
parent 944541f0af
commit b6b0dd438e

View File

@ -0,0 +1,18 @@
FROM node:16-alpine
# copy source
COPY . /app
WORKDIR /app
ENV LISTEN_PORT 1010
EXPOSE ${LISTEN_PORT}
# install dependencies
RUN npm -g install corenode
RUN npm install
# run builder
RUN corenode build
CMD corenode ./dist/index.js --listenPort=${LISTEN_PORT}