Skip to content

Commit e62c09a

Browse files
authored
Merge pull request #5 from norkator/Feature/docker-implementation
Adding base docker files
2 parents 8dd438c + a32e93c commit e62c09a

File tree

2 files changed

+37
-0
lines changed

2 files changed

+37
-0
lines changed

Dockerfile

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
FROM node:12
2+
3+
# Create Directory for the Container
4+
WORKDIR /usr/src/app
5+
6+
# Only copy the package.json file to work directory
7+
COPY package.json .
8+
9+
# Install all Packages
10+
RUN npm install
11+
12+
# Copy all other source code to work directory
13+
ADD . /usr/src/app
14+
15+
# TypeScript
16+
RUN npm run tsc
17+
18+
# Start
19+
CMD [ "npm", "start" ]
20+
EXPOSE 3000

docker-compose.yml

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
version: "3"
2+
networks:
3+
api_server_default:
4+
external: true
5+
6+
services:
7+
# The application image
8+
node-express-orm-typescript-template:
9+
networks:
10+
- api_server_default
11+
build:
12+
context: .
13+
dockerfile: Dockerfile
14+
environment:
15+
ENV_NAME: dev
16+
ports:
17+
- 3000:3000

0 commit comments

Comments
 (0)