-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
56 lines (31 loc) · 1.27 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
FROM node:latest
RUN mkdir -p /usr/srv/app
WORKDIR /usr/srv/app
COPY package*.json /usr/srv/app
RUN npm install
COPY . /usr/srv/app
EXPOSE 3000
# CMD ["npm","index.js"]
CMD ["npm","start"]
# STEP 1: ------------------------COMMAND FOR BUILDING---------------------------------
# sudo docker build -t chatwithme:1.0.0 .
# STEP 2:-----------COMMAND WHILE UPLOADING--------------------------------------------
# docker login
# himanshuleena
# Himanshu@Leena
# docker tag chatwithme:1.0.0 himanshuleena/chatwithme_image
# docker push himanshuleena/chatwithme_image
# STEP 3 :-----------COMMAND WHILE PULLING--------------------------------------------
# yum update
# yum install docker -y
# service docker start
# docker images
# docker pull himanshuleena/chatwithme_image
# docker images
# docker run --publish 3000:3000 himanshuleena/chatwithme_image
###########################################################################################
# -------------------------------FOR MANUAL TRANSFER------------------------------------------------------------------
# docker save -o chatapp.tar chatapp
# ---------------------------------FOR PUBLISHING --------------------------------------------------------------------
# sudo docker images
# docker run --publish 3000:3000 myapp