forked from braytonstafford/farser
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
30 lines (23 loc) · 700 Bytes
/
Copy pathDockerfile
File metadata and controls
30 lines (23 loc) · 700 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
26
27
28
29
30
# Set the base image to Ubuntu
FROM ubuntu:xenial
# File Author / Maintainer
MAINTAINER Brayton Stafford
# Install Node.js and other dependencies
RUN apt-get update && \
apt-get -y install sudo && \
apt-get -y install curl && \
curl -sL https://deb.nodesource.com/setup_6.x | sudo bash - && \
apt-get -y install python build-essential nodejs
# Install nodemon
RUN npm install -g nodemon
# Provides cached layer for node_modules
ADD package.json /tmp/package.json
RUN cd /tmp && npm install
RUN mkdir -p /src && cp -a /tmp/node_modules /src/
# Define working directory
WORKDIR /src
ADD . /src
# Expose port
EXPOSE 4000
# Run app using nodemon
CMD ["nodemon", "/src/app.js"]