-
Notifications
You must be signed in to change notification settings - Fork 196
Expand file tree
/
Copy pathDockerfile
More file actions
33 lines (26 loc) · 764 Bytes
/
Dockerfile
File metadata and controls
33 lines (26 loc) · 764 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
31
32
33
FROM debian:jessie
RUN apt-get update && apt-get install -y \
build-essential \
curl \
nano \
supervisor
# Install Node.js
RUN curl -sL https://deb.nodesource.com/setup_4.x | bash -
RUN apt-get install -y nodejs
# Improve cache invalidations by only running npm if requirements have indeed changed
WORKDIR /app
COPY package.json /app/
RUN npm install
# Supervisor settings
COPY docker/supervisord.conf /etc/supervisor/conf.d/nicistore.conf
# Application source code
COPY config/ /app/config
COPY src/ /app/src
COPY static/ /app/static
RUN rm -rf /app/static/dist
COPY webpack/ /app/webpack
COPY index.js /app/
RUN npm run build
# Expose application server port
EXPOSE 3000
CMD ["supervisord", "-c", "/etc/supervisor/supervisord.conf", "-n"]