forked from atlassian/nucleus
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
30 lines (18 loc) · 728 Bytes
/
Dockerfile
File metadata and controls
30 lines (18 loc) · 728 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
FROM node:8
RUN apt update && apt install createrepo dpkg-dev apt-utils gnupg2 gzip -y && rm -rf /var/lib/apt/lists/*
WORKDIR /opt/service
# Copy PJ, changes should invalidate entire image
COPY package.json yarn.lock /opt/service/
# Copy commong typings
COPY typings /opt/service/typings
# Copy TS configs
COPY tsconfig* /opt/service/
# Build backend
COPY src /opt/service/src
# Build Frontend
COPY public /opt/service/public
COPY webpack.*.js postcss.config.js README.md /opt/service/
# Install dependencies
RUN yarn --cache-folder ../ycache && yarn build:server && yarn build:fe:prod && yarn --production --cache-folder ../ycache && rm -rf ../ycache
EXPOSE 8080
ENTRYPOINT ["npm", "run", "start:server:prod", "--"]