forked from OlympusDAO/olympus-contracts
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
36 lines (29 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
FROM node:14-buster-slim
# Needed for npm dependencies
RUN apt-get update && \
apt-get install -y \
python3.7 \
make \
gcc \
g++ \
git \
curl
ENV PYTHON="/usr/bin/python3.7"
# Install dependencies
RUN mkdir -p /opt
WORKDIR /opt
COPY package.json .
COPY yarn.lock .
# Workaround for an issue with yarn and git
RUN git config --global url."https://github.com/".insteadOf ssh://git@github.com/ && \
git config --global url."https://".insteadOf git://
RUN yarn install --frozen-lockfile
# COPY files required for deployment
COPY hardhat.config.ts .
COPY contracts contracts
COPY scripts scripts
COPY deployments/localhost deployments/localhost
EXPOSE 8545
HEALTHCHECK --interval=10s --timeout=15s --start-period=60s --retries=6 CMD curl -f http://localhost:8545/ || exit 1
# Run the node by default
ENTRYPOINT yarn run start