2021-06-15 14:56:14 +02:00

18 lines
264 B
Docker

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}