-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathDockerfile
34 lines (29 loc) · 804 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
FROM node:14-alpine AS builder
WORKDIR /usr/src/app
COPY package*.json ./
COPY tsconfig*.json ./
COPY .eslintrc ./
COPY src src
RUN npm ci
RUN npm run build
FROM wavesplatform/wavesnode:latest
ENV NODE_ENV=production
USER root
RUN apt-get update && apt-get install -y curl
RUN curl -sL https://deb.nodesource.com/setup_14.x | bash -
RUN apt-get install -y nodejs
RUN npm i -g forever
WORKDIR /usr/src/app
COPY package*.json ./
COPY resotta-api.json ./
COPY .env ./
RUN npm install
COPY --from=builder /usr/src/app/dist/ dist/
COPY .env ./dist/
EXPOSE 8080 6869 6868 6863 6862
COPY docker-entrypoint.sh /usr/local/bin/
RUN chmod +x /usr/local/bin/docker-entrypoint.sh
WORKDIR /usr/local/bin/
VOLUME /var/lib/waves
VOLUME /usr/share/waves/lib/plugins
ENTRYPOINT ["/usr/local/bin/docker-entrypoint.sh"]