-
Notifications
You must be signed in to change notification settings - Fork 13
/
Dockerfile
37 lines (26 loc) · 860 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
FROM selenium/node-chrome-debug
###############################################################
# See the #docker section of the README.md for more information
###############################################################
# Needed for specific apt-get install package(s)
USER root
# selenium/node-* and raspbian/stretch images do not contain
# npm
# (Verified 2019-05-01)
RUN apt-get update \
&& apt-get install -y \
npm
ENV APPDIR finance-transact
# Cleanup from package installation
RUN rm -rf /var/lib/apt/lists/*
WORKDIR $APPDIR
COPY package.json ./
# Install node dependencies
# (will be cached unless package file is modified)
RUN npm install --production
COPY src ./src/
COPY tsconfig.json ./
COPY config/default.json5 ./config/
# Compile our TypeScript source code files
RUN npm run tsc
ENV VNC_NO_PASSWORD=1