We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 8dd438c + a32e93c commit e62c09aCopy full SHA for e62c09a
Dockerfile
@@ -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
@@ -0,0 +1,17 @@
+version: "3"
+networks:
+ api_server_default:
+ external: true
+services:
+ # The application image
+ node-express-orm-typescript-template:
+ networks:
+ - api_server_default
+ build:
+ context: .
+ dockerfile: Dockerfile
+ environment:
+ ENV_NAME: dev
+ ports:
+ - 3000:3000
0 commit comments