-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile.in
33 lines (23 loc) · 702 Bytes
/
Dockerfile.in
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 kthse/kth-nodejs:14.0.0
RUN mkdir -p /npm && \
mkdir -p /application
# We do this to avoid npm install when we're only changing code
WORKDIR /npm
COPY ["package.json", "package.json"]
COPY ["package-lock.json", "package-lock.json"]
RUN npm install --production --no-optional
# Add the code and copy over the node_modules-catalog
WORKDIR /application
RUN cp -a /npm/node_modules /application && \
rm -rf /npm
COPY ["config", "config"]
COPY ["public", "public"]
COPY ["i18n", "i18n"]
COPY ["package.json", "package.json"]
COPY [".babelrc", ".babelrc"]
RUN npm run docker
COPY ["app.js", "app.js"]
COPY ["server", "server"]
ENV NODE_PATH /application
EXPOSE 3000
CMD ["node", "app.js"]