-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
executable file
·46 lines (32 loc) · 972 Bytes
/
Dockerfile
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
45
46
FROM node:12
# Change working directory
WORKDIR "/app"
# Update packages and install dependency packages for services
RUN apt-get update \
&& apt-get dist-upgrade -y \
&& apt-get install -y ffmpeg \
&& apt-get install vim -y \
&& apt-get install -y wget \
&& apt-get install -y inkscape fontconfig \
&& apt-get install -y fonts-liberation \
&& apt-get install -y unzip \
&& apt-get clean \
&& echo 'Finished installing dependencies'
# https://github.com/cypress-io/cypress-docker-images/issues/109
RUN apt-get -qqy update \
&& apt-get -qqy --no-install-recommends install fonts-wqy-zenhei \
&& rm -rf /var/lib/apt/lists/* \
&& apt-get -qyy clean
# Copy package.json and package-lock.json
COPY package*.json ./
# Install npm production packages
RUN npm install --productiona
COPY . /app
RUN fc-cache -fv
ENV NODE_ENV production
ENV PORT 3000
# enable chinese font
ENV LANG C.UTF-8
EXPOSE 3000
# USER node
CMD ["npm", "start"]