-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathDockerfile
More file actions
44 lines (35 loc) · 1.06 KB
/
Copy pathDockerfile
File metadata and controls
44 lines (35 loc) · 1.06 KB
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
FROM node:argon
MAINTAINER Nick Lombardi
# Add build utils (seems to be necessary for certain node-gyp commands)
# RUN apt-get update && \
# apt-get install \
# -y \
# --no-install-recommends \
# build-essential \
# && \
# apt-get autoremove -y && \
# apt-get clean && \
# rm -rf /var/lib/apt/lists/*
# Set npm log levels
RUN npm config --global set progress false && \
npm config --global set spin false && \
npm config --global set loglevel http && \
npm config --global set color true
# Make sure we are running the latest version of npm
RUN npm install npm -g \
--loglevel=warn
RUN npm install -g nodemon
# Create the directory we are going to install our app into, and make all
# following RUN commands execute in that directory
RUN mkdir -p /api
WORKDIR /api
# Copy in the package.json and NPM install first
# to hopefully be able to reuse a prio cached image
COPY package.json /api
RUN npm install \
--loglevel=warn
COPY . /api
RUN ls -la
RUN ls -la node_modules
EXPOSE 80 3000 3001 443
CMD [ "npm", "start" ]