forked from Canop/miaou
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
32 lines (25 loc) · 712 Bytes
/
Dockerfile
File metadata and controls
32 lines (25 loc) · 712 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
#
# Dockerfile for Miaou application
#
# The docker solution isn't really maintained. Ping us on miaou.dystroy.org
# if you need it and we'll resurect it
# Based on docker official node image
FROM node
# Install "nodemon" and "buster" globally
USER node
RUN mkdir ~/.npm-global
ENV NPM_CONFIG_PREFIX ~/.npm-global
# Setup workspace
USER root
RUN mkdir -p /var/www/miaou
WORKDIR /var/www/miaou
# NPM install (this is done before copying the whole application, in order to be cached)
COPY package.json /var/www/miaou/
RUN npm install
# Copy and build application
COPY . /var/www/miaou/
RUN npm run build
# Define exposable ports
EXPOSE 8204
# Define default command
CMD ["node", "--use_strict", "main.js"]