From b2156802b090fb0d6cecb1399cbd881421e270b1 Mon Sep 17 00:00:00 2001 From: Abheek Dhawan Date: Mon, 21 Mar 2022 12:16:27 -0500 Subject: [PATCH] Update Dockerfile and docker-compose for TypeScript --- Dockerfile | 4 ++-- docker-compose.yml | 8 +++++--- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/Dockerfile b/Dockerfile index 39ac949..4dd9167 100644 --- a/Dockerfile +++ b/Dockerfile @@ -9,8 +9,8 @@ COPY yarn.lock ./ RUN yarn # Build +COPY . . RUN yarn tsc - -COPY ./built/* . +RUN cp -r built/* . CMD [ "node", "index.js" ] diff --git a/docker-compose.yml b/docker-compose.yml index 81eb296..cf56617 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -8,8 +8,10 @@ services: - ./data:/data/db awesomescibo: - image: abheekd/awesomescibo:latest + image: abheekd/awesomescibo:local restart: unless-stopped environment: - MONGO_URI: "mongodb://mongo:27017/AWESOME?authSource=AWESOME&w=1" - TOKEN: "TOKEN" + MONGO_URI: "mongodb://mongo:27017/AWESOME" + TOKEN: "" + CLIENT_ID: "" + TESTING_GUIDE: ""