Skip to content

Commit

Permalink
update dockerfiles
Browse files Browse the repository at this point in the history
  • Loading branch information
pkage committed Oct 23, 2020
1 parent 41e89ae commit 3c651d8
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 6 deletions.
8 changes: 7 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
FROM quay.io/ivanvanderbyl/docker-nightmare:latest

ENV NODE_VERSION=14.0.0
RUN curl -SLO "https://nodejs.org/dist/v$NODE_VERSION/node-v$NODE_VERSION-linux-x64.tar.xz" && tar -xJf "node-v$NODE_VERSION-linux-x64.tar.xz" -C /usr/local --strip-components=1 && rm "node-v$NODE_VERSION-linux-x64.tar.xz" && ln -sf /usr/local/bin/node /usr/local/bin/nodejs

ADD . /workspace
RUN npm install

CMD "server.js"
ENTRYPOINT cd /workspace && sh entrypoint.sh /usr/local/bin/node server.js
#ENTRYPOINT sh

#CMD "server.js"
9 changes: 6 additions & 3 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
version: "3.7"
services:
api:
image: "TBD"
image: "eusa-members-api"
ports:
- "3000:3000"
volumes:
- "instance/instance"
command: "server.js"
- type: bind
source: ./instance
target: /instance

command: "server.js"
14 changes: 12 additions & 2 deletions instance/secret.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,15 @@
{
"email": "[email protected]",
"password": "your-password-here",
"apikey": "some-api-key"
}
"apikey": "some-api-key",
"google": {
"client_id": "YOUR_CLIENT_ID",
"client_secret": "YOUR_CLIENT_SECRET",
"callback": "https://YOUR_DEPLOYMENT_URL/auth/google/callback"
},
"sendy": {
"sendy_url": "https://YOUR_SENDY_URL/sendy",
"api_key": "YOUR_SENDY_API_KEY",
"target_list": "YOUR_SENDY_TARGET_LIST"
}
}

0 comments on commit 3c651d8

Please sign in to comment.