Browse Source

Update Dockerfile and docker-compose for TypeScript

pull/41/head
Abheek Dhawan 3 years ago
parent
commit
b2156802b0
Signed by: abheekd GPG Key ID: 7BE81B8C14475B67
  1. 4
      Dockerfile
  2. 8
      docker-compose.yml

4
Dockerfile

@ -9,8 +9,8 @@ COPY yarn.lock ./
RUN yarn RUN yarn
# Build # Build
COPY . .
RUN yarn tsc RUN yarn tsc
RUN cp -r built/* .
COPY ./built/* .
CMD [ "node", "index.js" ] CMD [ "node", "index.js" ]

8
docker-compose.yml

@ -8,8 +8,10 @@ services:
- ./data:/data/db - ./data:/data/db
awesomescibo: awesomescibo:
image: abheekd/awesomescibo:latest image: abheekd/awesomescibo:local
restart: unless-stopped restart: unless-stopped
environment: environment:
MONGO_URI: "mongodb://mongo:27017/AWESOME?authSource=AWESOME&w=1" MONGO_URI: "mongodb://mongo:27017/AWESOME"
TOKEN: "TOKEN" TOKEN: ""
CLIENT_ID: ""
TESTING_GUIDE: ""

Loading…
Cancel
Save