forked from pokt-network/node-nanny
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
30 lines (24 loc) · 707 Bytes
/
Dockerfile
File metadata and controls
30 lines (24 loc) · 707 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 ubuntu:20.04
LABEL description="Babysits your nodes, so you don't have to"
WORKDIR /usr/src/node-nanny-backend
RUN apt-get update
RUN apt-get update && apt-get install -y \
curl \
gnupg \
git \
netcat
RUN curl -sL https://deb.nodesource.com/setup_16.x | bash -
RUN apt-get install nodejs -y
RUN curl -f https://get.pnpm.io/v6.16.js | node - add --global pnpm@6
COPY ./ .
RUN rm -rf ./packages/ui
RUN rm ./pnpm-lock.yaml
RUN find . -type f -name "*jest*" -delete
RUN find . -type f -name "*.test.*" -delete
RUN pnpm install pm2 turbo -g
RUN pnpm install
RUN pnpm build
RUN npm set-script postinstall ""
RUN pnpm prune --production
EXPOSE 4000
CMD ["pm2-runtime", "process.yml"]