-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
25 lines (16 loc) · 710 Bytes
/
Dockerfile
File metadata and controls
25 lines (16 loc) · 710 Bytes
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
FROM library/node
MAINTAINER Ajinkya Rajput <ajinkya.r.rajput@gmail.com>
#FROM ubuntu:16.04
# Install required system packages and dependencies
#RUN apt-get -y update && \
# apt-get -y install build-essential ca-certificates curl ghostscript git imagemagick libbz2-1.0 libc6 libgcc1 libncurses5 libreadline6 libsqlite3-0 libssl1.0.0 libstdc++6 libtinfo5 pkg-config unzip wget zlib1g
#RUN curl -sL https://deb.nodesource.com/setup_6.x -o nodesource_setup.sh
#RUN bash nodesource_setup.sh
#RUN apt-get install -y nodejs
COPY package.json /build/
RUN cd /build && npm install
RUN cd /build && cp -R node_modules /app && rm -rf /build
COPY . /app
WORKDIR /app
EXPOSE 3000
ENTRYPOINT ["nodejs app.js"]