Docker files

This commit is contained in:
Joe-Dowd
2020-07-05 04:35:06 +01:00
parent 46dd16caf9
commit 74b82ea990
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 Executable file
View File

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