Skip to content
This repository has been archived by the owner on Jul 14, 2023. It is now read-only.

Add docker setup #1

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
FROM node:14

COPY package*.json ./

RUN npm i

COPY src ./src
COPY tsconfig.json ./tsconfig.json

RUN npm run build

# Change this to be whichever port the application is running on
EXPOSE 8080

CMD npm run start
2 changes: 2 additions & 0 deletions build-docker-image.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
:: replace image_name below with the desired image tag name
docker build -t image_name .
9 changes: 9 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
version: '3'

services:
ts-node-starter: # Replace with the service name
image: ts-node-starter # Replace with the image name
container_name: ts-node-starter # Replace with the container name
restart: on-failure
ports:
- "8080:8080" # Replace with the correct ports"