-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile
36 lines (31 loc) · 1005 Bytes
/
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
FROM node:6.3.0-slim
ENV SHELL /bin/bash
COPY *.js package.json server/
WORKDIR /server
RUN npm install
EXPOSE 3000
CMD ["npm", "start"]
#
#FROM ubuntu:16.04
#
#
#ENV SHELL /bin/bash
#
#RUN apt-get update && apt-get install -y openssl curl build-essential libssl-dev vim zip unzip gawk && echo -e "\n----\nPASS - apt-get\n----\n" && \
#curl https://raw.githubusercontent.com/creationix/nvm/v0.30.2/install.sh | bash && echo -e "\n----\nPASS - install nvm \n----\n" && \
#export NVM_DIR="$HOME/.nvm" && [ -s "$NVM_DIR/nvm.sh" ] && \
#. "$NVM_DIR/nvm.sh" && echo -e "\n----\nPASS - nvm environ\n----\n" && \
#nvm install v5.7.1 && echo -e "\n----\nPASS - node version install \n----\n" && \
#nvm use 5.7.1 && echo -e "\n----\nPASS - nvm use\n----\n" && \
#nvm alias default node && echo -e "\n----\nPASS - nvm alias\n----\n"
#
#COPY *.js package.json server/
#
#WORKDIR /server
#ENV NVM_BIN /root/.nvm/versions/node/v5.7.1/bin
#ENV PATH $NVM_BIN:$PATH
#RUN npm install
#
#EXPOSE 3000
#
#CMD npm start