forked from NautilusOSS/smart-contract-staking
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
24 lines (16 loc) · 741 Bytes
/
Dockerfile
File metadata and controls
24 lines (16 loc) · 741 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
FROM node:20.12.2-bookworm@sha256:3864be2201676a715cf240cfc17aec1d62459f92a7cbe7d32d1675e226e736c9 AS node
FROM python:3.12.3-bookworm@sha256:feb165fc7a6faf49f1b6ab2571891e8c6f259b40a2325f38875bc928519ab911 AS python
COPY --from=node /usr/local /usr/local
COPY /src /src
COPY Pipfile /
COPY Pipfile.lock /
COPY pytest.ini /
COPY generate_clients.sh /
WORKDIR /
RUN apt-get update && apt-get install -y jq
# Using --deploy --ignore-pipfile to ensure that lockfile dependencies matches declared dependencies. Install only from lockfile.
RUN python3 -m pip install --user pipenv && \
/root/.local/bin/pipenv install --deploy --ignore-pipfile --system
RUN mkdir -p /artifacts
# uses latest version of puyapy
CMD /generate_clients.sh