This commit is contained in:
Joe-Dowd 2020-07-05 04:37:57 +01:00
parent 220f562242
commit cd875bd0f9
2 changed files with 13 additions and 0 deletions

9
Dockerfile Normal file
View file

@ -0,0 +1,9 @@
FROM node:12
WORKDIR /usr/src/app
COPY package.json .
RUN npm install
COPY index.js .
COPY src .
COPY entrypoint.sh .
EXPOSE 8080
ENTRYPOINT ./entrypoint.sh

4
entrypoint.sh Normal file
View file

@ -0,0 +1,4 @@
#!bin/bash
set -e
cp /etc/config.json .
node index.js